summaryrefslogtreecommitdiffstats
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
parenttest for tdf#34957: change font in test document to make it work here (diff)
downloadcore-e32dcddaa5b74b3d163413c685d7c088cef1cbd9.tar.gz
core-e32dcddaa5b74b3d163413c685d7c088cef1cbd9.zip
OOneInstanceAutoRegistration is not used
Change-Id: I6928dec92655e4655af6c519405712892bf7d870
-rw-r--r--dbaccess/source/inc/registrationhelper.hxx36
-rw-r--r--extensions/source/inc/componentmodule.hxx41
2 files changed, 0 insertions, 77 deletions
diff --git a/dbaccess/source/inc/registrationhelper.hxx b/dbaccess/source/inc/registrationhelper.hxx
index 4703147b00dc..b49b40fcdb59 100644
--- a/dbaccess/source/inc/registrationhelper.hxx
+++ b/dbaccess/source/inc/registrationhelper.hxx
@@ -87,7 +87,6 @@ public:
Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&)</code><BR>
the instantiation of this object will automatically register the class via <code>OModuleRegistration::registerComponent</code>.
The factory creation function used is <code>::cppu::createSingleFactory</code>.<BR>
- @see OOneInstanceAutoRegistration
*/
OMultiInstanceAutoRegistration();
~OMultiInstanceAutoRegistration();
@@ -110,39 +109,4 @@ OMultiInstanceAutoRegistration<TYPE>::~OMultiInstanceAutoRegistration()
OModuleRegistration::revokeComponent(TYPE::getImplementationName_Static());
}
-template <class TYPE>
-class OOneInstanceAutoRegistration
-{
-public:
- /** provided that the template argument has three methods<BR>
- <code>static OUString getImplementationName_Static()</code><BR>
- <code>static css::uno::Sequence< OUString > getSupportedServiceNames_Static()</code><BR>
- and<BR>
- <code>static css::uno::Reference< css::uno::XInterface >
- Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&)</code><BR>
- the instantiation of this object will automatically register the class via <code>OModuleRegistration::registerComponent</code>.
- The factory creation function used is <code>::cppu::createSingleFactory</code>.<BR>
- @see OMultiInstanceAutoRegistration
- */
- OOneInstanceAutoRegistration();
- ~OOneInstanceAutoRegistration();
-};
-
-template <class TYPE>
-OOneInstanceAutoRegistration<TYPE>::OOneInstanceAutoRegistration()
-{
- OModuleRegistration::registerComponent(
- TYPE::getImplementationName_Static(),
- TYPE::getSupportedServiceNames_Static(),
- TYPE::Create,
- ::cppu::createOneInstanceFactory
- );
-}
-
-template <class TYPE>
-OOneInstanceAutoRegistration<TYPE>::~OOneInstanceAutoRegistration()
-{
- OModuleRegistration::revokeComponent(TYPE::getImplementationName_Static());
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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