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
}
};
/* -------------------------------------------------------------------- */
template < class TYPE >
class OSingletonRegistration : public ::comphelper::OSingletonRegistration< TYPE >
{
private:
typedef ::comphelper::OSingletonRegistration< TYPE > BaseClass;
public:
OSingletonRegistration() : BaseClass( ComphelperModule::getInstance() )
{
}
};
} } // namespace comphelper::module
......
......@@ -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",
......
......@@ -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
......
......@@ -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
......
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