Kaydet (Commit) 5a1cd2f3 authored tarafından Matúš Kukan's avatar Matúš Kukan Kaydeden (comit) Matúš Kukan

OSingletonRegistration is dead now

Change-Id: I64a5ffa8790496bd39ba26e0c789db9eedc51071
Reviewed-on: https://gerrit.libreoffice.org/22788Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMatúš Kukan <matus@libreoffice.org>
üst 9bd334a4
...@@ -64,20 +64,6 @@ namespace comphelper { namespace module ...@@ -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 } } // namespace comphelper::module
......
...@@ -112,7 +112,6 @@ static std::vector<std::string> PROBABLY_GOOD_TEMPLATES = { ...@@ -112,7 +112,6 @@ static std::vector<std::string> PROBABLY_GOOD_TEMPLATES = {
"com::sun::star::uno::Sequence", "com::sun::star::uno::Sequence",
"accessibility::WeakCppRef", "accessibility::WeakCppRef",
"dba::OAutoRegistration", "dba::OAutoRegistration",
"dba::OSingletonRegistration",
"dbp::OMultiInstanceAutoRegistration", "dbp::OMultiInstanceAutoRegistration",
"dbaui::OMultiInstanceAutoRegistration", "dbaui::OMultiInstanceAutoRegistration",
"dbaxml::OMultiInstanceAutoRegistration", "dbaxml::OMultiInstanceAutoRegistration",
...@@ -120,7 +119,6 @@ static std::vector<std::string> PROBABLY_GOOD_TEMPLATES = { ...@@ -120,7 +119,6 @@ static std::vector<std::string> PROBABLY_GOOD_TEMPLATES = {
"io_acceptor::ReferenceHash", "io_acceptor::ReferenceHash",
"comphelper::OAutoRegistration", "comphelper::OAutoRegistration",
"comphelper::OInterfaceCompare", "comphelper::OInterfaceCompare",
"comphelper::module::OSingletonRegistration",
"comphelper::WeakBag", "comphelper::WeakBag",
"comphelper::service_decl::class_", "comphelper::service_decl::class_",
"comphelper::service_decl::vba_service_class_", "comphelper::service_decl::vba_service_class_",
...@@ -131,7 +129,6 @@ static std::vector<std::string> PROBABLY_GOOD_TEMPLATES = { ...@@ -131,7 +129,6 @@ static std::vector<std::string> PROBABLY_GOOD_TEMPLATES = {
"dbmm::OAutoRegistration", "dbmm::OAutoRegistration",
"pcr::OAutoRegistration", "pcr::OAutoRegistration",
"logging::ComponentMethodGuard", "logging::ComponentMethodGuard",
"logging::OSingletonRegistration",
"logging::OAutoRegistration", "logging::OAutoRegistration",
"rtl::Reference", "rtl::Reference",
"sdbtools::OAutoRegistration", "sdbtools::OAutoRegistration",
......
...@@ -202,44 +202,6 @@ namespace comphelper ...@@ -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 } // namespace comphelper
......
...@@ -121,19 +121,6 @@ namespace utl ...@@ -121,19 +121,6 @@ namespace utl
OAutoRegistration() : BaseClass( ModuleClass::getInstance() ) \ 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 //= implementing a concrete module
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment