summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2015-12-12 18:59:32 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2015-12-12 19:13:14 +0100
commite32dcddaa5b74b3d163413c685d7c088cef1cbd9 (patch)
tree0218f4ceb887e845c17df2edb8ccf7aa72cf01fc /extensions
parent0769ad9284c4d71ab11e4460c0f380eca8d4c788 (diff)
OOneInstanceAutoRegistration is not used
Change-Id: I6928dec92655e4655af6c519405712892bf7d870
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/inc/componentmodule.hxx41
1 files changed, 0 insertions, 41 deletions
diff --git a/extensions/source/inc/componentmodule.hxx b/extensions/source/inc/componentmodule.hxx
index 79a6ebf3947f..58f80ba89dde 100644
--- a/extensions/source/inc/componentmodule.hxx
+++ b/extensions/source/inc/componentmodule.hxx
@@ -170,7 +170,6 @@ typedef css::uno::Reference< css::lang::XSingleServiceFactory > (SAL_CALL *Facto
the instantiation of this object will automatically register the class via <method>OModule::registerComponent</method>.
<p/>
The factory creation function used is <code>::cppu::createSingleFactory</code>.
- @see OOneInstanceAutoRegistration
*/
OMultiInstanceAutoRegistration();
~OMultiInstanceAutoRegistration();
@@ -193,46 +192,6 @@ typedef css::uno::Reference< css::lang::XSingleServiceFactory > (SAL_CALL *Facto
OModule::revokeComponent(TYPE::getImplementationName_Static());
}
- template <class TYPE>
- class OOneInstanceAutoRegistration
- {
- public:
- /** automatically registeres a single instance component
- <p>Assumed that the template argument has the three methods
- <ul>
- <li><code>static OUString getImplementationName_Static()</code><li/>
- <li><code>static css::uno::Sequence< OUString > getSupportedServiceNames_Static()</code><li/>
- <li><code>static css::uno::Reference< css::uno::XInterface >
- Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&)</code>
- </li>
- <ul/>
- the instantiation of this object will automatically register the class via <method>OModule::registerComponent</method>.
- <p/>
- The factory creation function used is <code>::cppu::createOneInstanceFactory</code>.
- @see OOneInstanceAutoRegistration
- */
- OOneInstanceAutoRegistration();
- ~OOneInstanceAutoRegistration();
- };
-
- template <class TYPE>
- OOneInstanceAutoRegistration<TYPE>::OOneInstanceAutoRegistration()
- {
- OModule::registerComponent(
- TYPE::getImplementationName_Static(),
- TYPE::getSupportedServiceNames_Static(),
- TYPE::Create,
- ::cppu::createOneInstanceFactory
- );
- }
-
- template <class TYPE>
- OOneInstanceAutoRegistration<TYPE>::~OOneInstanceAutoRegistration()
- {
- OModule::revokeComponent(TYPE::getImplementationName_Static());
- }
-
-
} // namespace COMPMOD_NAMESPACE