diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-03-30 21:30:52 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-31 15:41:29 +0000 |
commit | 7b0a2c0a6f1c671e1b7711752083a73aa905d18f (patch) | |
tree | c577ff798923ff61cf9e693f3d5ed0999e7424f6 /odk | |
parent | 52770659d33f8f08a769043392cfb5a926019fef (diff) |
Remove commented code in component.cxx (odk)
Change-Id: I559b91d465ab298b033b0866b3044a17038cc501
Reviewed-on: https://gerrit.libreoffice.org/3137
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx index d2eda76f6edf..20c2628da3f4 100644 --- a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx +++ b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx @@ -56,46 +56,6 @@ using namespace ::com::sun::star::registry; //#### EXPORTED #################################################################################### //################################################################################################## - -/** - * This function creates an implementation section in the registry and another subkey - * - * for each supported service. - * @param pServiceManager the service manager - * @param pRegistryKey the registry key - */ -// This method not longer necessary since OOo 3.4 where the component registration was -// was changed to passive component registration. For more details see -// http://wiki.services.openoffice.org/wiki/Passive_Component_Registration -// -// extern "C" SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo(void * pServiceManager, void * pRegistryKey) -// { -// sal_Bool result = sal_False; - -// if (pRegistryKey) -// { -// try -// { -// Reference< XRegistryKey > xNewKey( -// reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( -// OUString( RTL_CONSTASCII_USTRINGPARAM("/" IMPLEMENTATION_NAME "/UNO/SERVICES") ) ) ); - -// const Sequence< OUString > & rSNL = -// Addon_getSupportedServiceNames(); -// const OUString * pArray = rSNL.getConstArray(); -// for ( sal_Int32 nPos = rSNL.getLength(); nPos--; ) -// xNewKey->createKey( pArray[nPos] ); - -// return sal_True; -// } -// catch (InvalidRegistryException &) -// { -// // we should not ignore exceptions -// } -// } -// return result; -// } - /** * This function is called to get service factories for an implementation. * |