summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2016-02-29 19:46:58 +0100
committerMatúš Kukan <matus@libreoffice.org>2016-03-01 19:36:58 +0000
commit5a1cd2f30d9cc8b9a6ce5eaed06af199080055b7 (patch)
tree13dfbd3549bb061c3f4a476f103aa3e58425de56
parent9bd334a475e24d8454ef51b4d9aa5bd7668ee58e (diff)
OSingletonRegistration is dead now
Change-Id: I64a5ffa8790496bd39ba26e0c789db9eedc51071 Reviewed-on: https://gerrit.libreoffice.org/22788 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Matúš Kukan <matus@libreoffice.org>
-rw-r--r--comphelper/source/inc/comphelper_module.hxx14
-rw-r--r--compilerplugins/clang/refcounting.cxx3
-rw-r--r--include/comphelper/componentmodule.hxx38
-rw-r--r--include/unotools/componentresmodule.hxx13
4 files changed, 0 insertions, 68 deletions
diff --git a/comphelper/source/inc/comphelper_module.hxx b/comphelper/source/inc/comphelper_module.hxx
index 2364adf95b6e..8c587f033a1b 100644
--- a/comphelper/source/inc/comphelper_module.hxx
+++ b/comphelper/source/inc/comphelper_module.hxx
@@ -64,20 +64,6 @@ namespace comphelper { namespace module
}
};
- /* -------------------------------------------------------------------- */
- template < class TYPE >
- class OSingletonRegistration : public ::comphelper::OSingletonRegistration< TYPE >
- {
- private:
- typedef ::comphelper::OSingletonRegistration< TYPE > BaseClass;
-
- public:
- OSingletonRegistration() : BaseClass( ComphelperModule::getInstance() )
- {
- }
- };
-
-
} } // namespace comphelper::module
diff --git a/compilerplugins/clang/refcounting.cxx b/compilerplugins/clang/refcounting.cxx
index 0e899f362387..663fcb7a3958 100644
--- a/compilerplugins/clang/refcounting.cxx
+++ b/compilerplugins/clang/refcounting.cxx
@@ -112,7 +112,6 @@ static std::vector<std::string> PROBABLY_GOOD_TEMPLATES = {
"com::sun::star::uno::Sequence",
"accessibility::WeakCppRef",
"dba::OAutoRegistration",
- "dba::OSingletonRegistration",
"dbp::OMultiInstanceAutoRegistration",
"dbaui::OMultiInstanceAutoRegistration",
"dbaxml::OMultiInstanceAutoRegistration",
@@ -120,7 +119,6 @@ static std::vector<std::string> PROBABLY_GOOD_TEMPLATES = {
"io_acceptor::ReferenceHash",
"comphelper::OAutoRegistration",
"comphelper::OInterfaceCompare",
- "comphelper::module::OSingletonRegistration",
"comphelper::WeakBag",
"comphelper::service_decl::class_",
"comphelper::service_decl::vba_service_class_",
@@ -131,7 +129,6 @@ static std::vector<std::string> PROBABLY_GOOD_TEMPLATES = {
"dbmm::OAutoRegistration",
"pcr::OAutoRegistration",
"logging::ComponentMethodGuard",
- "logging::OSingletonRegistration",
"logging::OAutoRegistration",
"rtl::Reference",
"sdbtools::OAutoRegistration",
diff --git a/include/comphelper/componentmodule.hxx b/include/comphelper/componentmodule.hxx
index 9317916ae276..b14148a4ad6e 100644
--- a/include/comphelper/componentmodule.hxx
+++ b/include/comphelper/componentmodule.hxx
@@ -202,44 +202,6 @@ namespace comphelper
);
}
-
- //= OSingletonRegistration
-
- template <class TYPE>
- class OSingletonRegistration
- {
- public:
- /** automatically provides all component information to an OModule instance,
- for a singleton 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 OUString getSingletonName_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 <member>OModule::registerImplementation</member>.
- </p>
- */
- OSingletonRegistration( OModule& _rModule );
- };
-
- template <class TYPE>
-
- OSingletonRegistration<TYPE>::OSingletonRegistration( OModule& _rModule )
- {
- _rModule.registerImplementation( ComponentDescription(
- TYPE::getImplementationName_static(),
- TYPE::getSupportedServiceNames_static(),
- &TYPE::Create,
- &::cppu::createSingleComponentFactory
- ) );
- }
-
-
} // namespace comphelper
diff --git a/include/unotools/componentresmodule.hxx b/include/unotools/componentresmodule.hxx
index bc35a6cd1a0c..c63d10c100a3 100644
--- a/include/unotools/componentresmodule.hxx
+++ b/include/unotools/componentresmodule.hxx
@@ -121,19 +121,6 @@ namespace utl
OAutoRegistration() : BaseClass( ModuleClass::getInstance() ) \
{ \
} \
- }; \
- \
- /* -------------------------------------------------------------------- */ \
- template < class TYPE > \
- class OSingletonRegistration : public ::comphelper::OSingletonRegistration< TYPE > \
- { \
- private: \
- typedef ::comphelper::OSingletonRegistration< TYPE > BaseClass; \
- \
- public: \
- OSingletonRegistration() : BaseClass( ModuleClass::getInstance() ) \
- { \
- } \
};
//= implementing a concrete module