[Libreoffice-commits] core.git: dbaccess/source

Julien Nabet serval2412 at yahoo.fr
Mon Sep 2 13:50:39 PDT 2013


 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(-)

New commits:
commit fd636fe7222bf4193245be2e7bdf179b534171df
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Sep 2 22:49:20 2013 +0200

    Remove unused writeDBLoaderInfo
    
    See http://nabble.documentfoundation.org/About-writeDBLoaderInfo-function-in-dbloader-cxx-dbaccess-module-td4072511.html
    
    Change-Id: I11b8ff569eaaa8ddcaf105e45ef4ee189e71c183

diff --git a/dbaccess/source/filter/xml/dbloader2.cxx b/dbaccess/source/filter/xml/dbloader2.cxx
index 871b461..9f4bc18 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 4983681d..7f90c92 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 33efa88..78c1018 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();


More information about the Libreoffice-commits mailing list