From fd636fe7222bf4193245be2e7bdf179b534171df Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 2 Sep 2013 22:49:20 +0200 Subject: Remove unused writeDBLoaderInfo See http://nabble.documentfoundation.org/About-writeDBLoaderInfo-function-in-dbloader-cxx-dbaccess-module-td4072511.html Change-Id: I11b8ff569eaaa8ddcaf105e45ef4ee189e71c183 --- dbaccess/source/filter/xml/dbloader2.cxx | 16 ---------------- dbaccess/source/ui/browser/dbloader.cxx | 18 ------------------ dbaccess/source/ui/misc/uiservices.cxx | 1 - 3 files changed, 35 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/filter/xml/dbloader2.cxx b/dbaccess/source/filter/xml/dbloader2.cxx index 871b461c767a..9f4bc18c0e2d 100644 --- a/dbaccess/source/filter/xml/dbloader2.cxx +++ b/dbaccess/source/filter/xml/dbloader2.cxx @@ -602,20 +602,4 @@ extern "C" void SAL_CALL createRegistryInfo_DBContentLoader2() static ::dbaxml::OMultiInstanceAutoRegistration< ::dbaxml::DBContentLoader > aAutoRegistration; } -extern "C" void SAL_CALL writeDBLoaderInfo2(void* pRegistryKey) -{ - Reference< XRegistryKey> xKey(reinterpret_cast< XRegistryKey*>(pRegistryKey)); - - // register content loader for dispatch - OUString aImpl("/"); - aImpl += ::dbaxml::DBContentLoader::getImplementationName_Static(); - - OUString aImpltwo = aImpl + "/UNO/Loader"; - Reference< XRegistryKey> xNewKey = xKey->createKey( aImpltwo ); - aImpltwo = aImpl + "/Loader"; - Reference< XRegistryKey > xLoaderKey = xKey->createKey( aImpltwo ); - xNewKey = xLoaderKey->createKey( OUString("Pattern") ); - xNewKey->setAsciiValue( OUString("private:factory/sdatabase") ); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/dbaccess/source/ui/browser/dbloader.cxx b/dbaccess/source/ui/browser/dbloader.cxx index 4983681d79fb..7f90c9260900 100644 --- a/dbaccess/source/ui/browser/dbloader.cxx +++ b/dbaccess/source/ui/browser/dbloader.cxx @@ -150,24 +150,6 @@ Sequence< OUString > DBContentLoader::getSupportedServiceNames_Static(void) thro return aSNS; } -extern "C" void SAL_CALL writeDBLoaderInfo(void* pRegistryKey) -{ - Reference< XRegistryKey> xKey(reinterpret_cast< XRegistryKey*>(pRegistryKey)); - - // register content loader for dispatch - OUString aImpl("/"); - aImpl += DBContentLoader::getImplementationName_Static(); - - OUString aImpltwo = aImpl; - aImpltwo += "/UNO/Loader"; - Reference< XRegistryKey> xNewKey = xKey->createKey( aImpltwo ); - aImpltwo = aImpl; - aImpltwo += "/Loader"; - Reference< XRegistryKey > xLoaderKey = xKey->createKey( aImpltwo ); - xNewKey = xLoaderKey->createKey( OUString("Pattern") ); - xNewKey->setAsciiValue( OUString(".component:DB*") ); -} - void SAL_CALL DBContentLoader::load(const Reference< XFrame > & rFrame, const OUString& rURL, const Sequence< PropertyValue >& rArgs, const Reference< XLoadEventListener > & rListener) throw(::com::sun::star::uno::RuntimeException) diff --git a/dbaccess/source/ui/misc/uiservices.cxx b/dbaccess/source/ui/misc/uiservices.cxx index 33efa885a0aa..78c1018aac71 100644 --- a/dbaccess/source/ui/misc/uiservices.cxx +++ b/dbaccess/source/ui/misc/uiservices.cxx @@ -35,7 +35,6 @@ extern "C" void SAL_CALL createRegistryInfo_OSQLMessageDialog(); extern "C" void SAL_CALL createRegistryInfo_OBrowser(); extern "C" void SAL_CALL createRegistryInfo_OFormGridView(); extern "C" void SAL_CALL createRegistryInfo_DBContentLoader(); -extern "C" void SAL_CALL writeDBLoaderInfo(void* pRegistryKey); extern "C" void SAL_CALL createRegistryInfo_OInteractionHandler(); extern "C" void SAL_CALL createRegistryInfo_SbaXGridControl(); extern "C" void SAL_CALL createRegistryInfo_OQueryControl(); -- cgit v1.2.3