Remove block of commented code

Anders Jonsson anders.jonsson at norsjonet.se
Sat Jan 8 04:57:29 PST 2011


---
 .../Components/CppComponent/service1_impl.cxx      |   64 --------------------
 1 files changed, 0 insertions(+), 64 deletions(-)

diff --git a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
index a6933ce..1c5e49a 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
@@ -244,68 +244,4 @@ Reference< XInterface > SAL_CALL create_MyService2Impl(
 
 }
 
-/*
-extern "C" void SAL_CALL component_getImplementationEnvironment(
-    sal_Char const ** ppEnvTypeName, uno_Environment ** )
-{
-    *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
-}
-
-extern "C" sal_Bool SAL_CALL component_writeInfo(
-    lang::XMultiServiceFactory * xMgr, registry::XRegistryKey * xRegistry )
-{
-    if (xRegistry)
-    {
-        try
-        {
-            // implementation of MyService1A
-            Reference< registry::XRegistryKey > xKey(
-                xRegistry->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM(
-                    "my_module.my_sc_implementation.MyService1/UNO/SERVICES") ) ) );
-            // subkeys denote implemented services of implementation
-            xKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM(
-                "my_module.MyService1") ) );
-            // implementation of MyService1B
-            xKey = xRegistry->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM(
-                "my_module.my_sc_implementation.MyService2/UNO/SERVICES") ) );
-            // subkeys denote implemented services of implementation
-            xKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM(
-                "my_module.MyService2") ) );
-            return sal_True; // success
-        }
-        catch (registry::InvalidRegistryException &)
-        {
-            // function fails if exception caught
-        }
-    }
-    return sal_False;
-}
-extern "C" void * SAL_CALL component_getFactory(
-    sal_Char const * implName, lang::XMultiServiceFactory * xMgr, void * )
-{
-    Reference< lang::XSingleComponentFactory > xFactory;
-    if (0 == ::rtl_str_compare( implName, "my_module.my_sc_implementation.MyService1" ))
-    {
-        // create component factory for MyService1 implementation
-        OUString serviceName( RTL_CONSTASCII_USTRINGPARAM("my_module.MyService1") );
-        xFactory = ::cppu::createSingleComponentFactory(
-            ::my_sc_impl::create_MyService1Impl,
-            OUString( RTL_CONSTASCII_USTRINGPARAM("my_module.my_sc_implementation.MyService1") ),
-            Sequence< OUString >( &serviceName, 1 ) );
-    }
-    else if (0 == ::rtl_str_compare( implName, "my_module.my_sc_implementation.MyService2" ))
-    {
-        // create component factory for MyService12 implementation
-        OUString serviceName( RTL_CONSTASCII_USTRINGPARAM("my_module.MyService2") );
-        xFactory = ::cppu::createSingleComponentFactory(
-            ::my_sc_impl::create_MyService2Impl,
-            OUString( RTL_CONSTASCII_USTRINGPARAM("my_module.my_sc_implementation.MyService2") ),
-            Sequence< OUString >( &serviceName, 1 ) );
-    }
-    if (xFactory.is())
-        xFactory->acquire();
-    return xFactory.get(); // return acquired interface pointer or null
-}
-*/
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
-- 
1.7.1


--------------070906010208000708080102
Content-Type: text/x-diff;
 name="0001-Remove-commented-code.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0001-Remove-commented-code.patch"



More information about the LibreOffice mailing list