diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-01 00:08:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-01 00:56:18 +0200 |
commit | c91f5851d0412cbf8fbe1b3d8da0048241aaba09 (patch) | |
tree | ce6eed0bf693759ab6eb680ad8ee4c6508f7da15 /cppuhelper/source | |
parent | 69f1846f4095a9dc607a0e568980d8625d657c94 (diff) |
[API CHANGE] Remove unused cppu::invokeStaticComponentFactory again
...that has neither been intended for external use anyway, nor has it ever been
used internally since its dead-on-arrival inception in
b16ab7a751c04049b4171df412f1ef0f4f9b02f2 "Add invokeStaticComponentFactory() for
statically linked components: Will be used for iOS at least." Sigh.
Change-Id: I17795b2a1945809688deba0a5492415fbe877400
Diffstat (limited to 'cppuhelper/source')
-rw-r--r-- | cppuhelper/source/compat.cxx | 23 | ||||
-rw-r--r-- | cppuhelper/source/shlib.cxx | 27 |
2 files changed, 21 insertions, 29 deletions
diff --git a/cppuhelper/source/compat.cxx b/cppuhelper/source/compat.cxx index 3047c114815e..c5075402f5ad 100644 --- a/cppuhelper/source/compat.cxx +++ b/cppuhelper/source/compat.cxx @@ -21,9 +21,11 @@ #include <cstdlib> +#include "com/sun/star/loader/CannotActivateFactoryException.hpp" #include "com/sun/star/uno/Exception.hpp" #include "com/sun/star/uno/Reference.hxx" #include "com/sun/star/uno/Sequence.hxx" +#include "osl/module.h" #include "sal/types.h" namespace com { namespace sun { namespace star { @@ -32,8 +34,14 @@ namespace com { namespace sun { namespace star { class XMultiServiceFactory; } namespace reflection { class XIdlClass; } - namespace registry { class XSimpleRegistry; } - namespace uno { class XComponentContext; } + namespace registry { + class XRegistryKey; + class XSimpleRegistry; + } + namespace uno { + class XComponentContext; + class XInterface; + } } } } namespace rtl { class OUString; } @@ -84,6 +92,17 @@ createStandardClassWithSequence( for (;;) { std::abort(); } // avoid "must return a value" warnings } +SAL_DLLPUBLIC_EXPORT css::uno::Reference<css::uno::XInterface> SAL_CALL +invokeStaticComponentFactory( + oslGenericFunction, rtl::OUString const &, + css::uno::Reference<css::lang::XMultiServiceFactory> const &, + css::uno::Reference<css::registry::XRegistryKey> const &, + rtl::OUString const &) + SAL_THROW((css::loader::CannotActivateFactoryException)) +{ + for (;;) { std::abort(); } // avoid "must return a value" warnings +} + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppuhelper/source/shlib.cxx b/cppuhelper/source/shlib.cxx index 2887e6f3c84d..00c21d2a9108 100644 --- a/cppuhelper/source/shlib.cxx +++ b/cppuhelper/source/shlib.cxx @@ -456,33 +456,6 @@ Reference< XInterface > SAL_CALL loadSharedLibComponentFactory( return xRet; } -Reference< XInterface > SAL_CALL invokeStaticComponentFactory( - oslGenericFunction pGetter, - OUString const & rImplName, - Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr, - Reference< ::com::sun::star::registry::XRegistryKey > const & xKey, - OUString const & rPrefix ) - SAL_THROW( (::com::sun::star::loader::CannotActivateFactoryException) ) -{ - Reference< XInterface > xRet; - oslModule pExe; - OUString aExePath("MAIN"); - osl_getModuleHandle( NULL, &pExe ); - OUString aExcMsg; - - xRet = invokeComponentFactory( pGetter, pExe, aExePath, rImplName, xMgr, xKey, rPrefix, aExcMsg ); - - if (! xRet.is()) - { - SAL_WARN("cppuhelper", "### cannot activate factory: " << aExcMsg); - throw loader::CannotActivateFactoryException( - aExcMsg, - Reference< XInterface >() ); - } - - return xRet; -} - #ifndef DISABLE_DYNLOADING //============================================================================== |