summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-07-24 20:49:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-25 08:57:13 +0200
commit5c1916763d73f2d46c4a2d5f929297685035fbff (patch)
tree0adbe078a818c0737732067fb2af850a00282bc3 /comphelper
parentc9e13a9f18af433a306a489e996f680aba442da4 (diff)
loplugin:unusedmethods
Change-Id: I3a35c988b1c55b16958172ed5ef4e2d5cb410e55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99413 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/componentmodule.cxx32
1 files changed, 0 insertions, 32 deletions
diff --git a/comphelper/source/misc/componentmodule.cxx b/comphelper/source/misc/componentmodule.cxx
index d4e23c70f48e..2fb5c31d9144 100644
--- a/comphelper/source/misc/componentmodule.cxx
+++ b/comphelper/source/misc/componentmodule.cxx
@@ -67,38 +67,6 @@ namespace comphelper
m_pImpl->m_aRegisteredComponents.push_back( _rComp );
}
- void OModule::registerImplementation( const OUString& _rImplementationName, const css::uno::Sequence< OUString >& _rServiceNames,
- ::cppu::ComponentFactoryFunc _pCreateFunction )
- {
- ComponentDescription aComponent( _rImplementationName, _rServiceNames, _pCreateFunction, ::cppu::createSingleComponentFactory );
- registerImplementation( aComponent );
- }
-
- Reference< XInterface > OModule::getComponentFactory( const OUString& _rImplementationName )
- {
- Reference< XInterface > xReturn;
-
- for (const auto& rComponent : m_pImpl->m_aRegisteredComponents)
- {
- if ( rComponent.sImplementationName == _rImplementationName )
- {
- xReturn = rComponent.pFactoryCreationFunc(
- rComponent.pComponentCreationFunc,
- rComponent.sImplementationName,
- rComponent.aSupportedServices,
- nullptr
- );
- if ( xReturn.is() )
- {
- xReturn->acquire();
- return xReturn.get();
- }
- }
- }
-
- return nullptr;
- }
-
} // namespace comphelper
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */