diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-23 13:44:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-23 21:11:32 +0200 |
commit | 4bb2bca091ffa0cc8a5f4a850eef146bb66feaa0 (patch) | |
tree | e5cbebaf295f857d73ac73a1d3ea9f542961b898 /include/comphelper | |
parent | 3c077e587d36170be53bad90bd5c87364295426c (diff) |
remove now unnecessary comphelper::OModuleClient stuff
after the great gettext migration of 2017
Change-Id: I704389b1ae1fb34dae0429c98cbfc89c2d3b8e27
Reviewed-on: https://gerrit.libreoffice.org/40322
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/componentmodule.hxx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/include/comphelper/componentmodule.hxx b/include/comphelper/componentmodule.hxx index 05626ebaecee..9cb07461ce7d 100644 --- a/include/comphelper/componentmodule.hxx +++ b/include/comphelper/componentmodule.hxx @@ -82,7 +82,6 @@ namespace comphelper class COMPHELPER_DLLPUBLIC OModule { private: - oslInterlockedCount m_nClients; /// number of registered clients std::unique_ptr<OModuleImpl> m_pImpl; /// impl class. lives as long as at least one client for the module is registered protected: @@ -126,42 +125,12 @@ namespace comphelper */ void* getComponentFactory( const sal_Char* _pImplementationName ); - public: - class ClientAccess { friend class OModuleClient; private: ClientAccess() { } }; - /// register a client for the module - void registerClient( ClientAccess ); - /// revoke a client for the module - void revokeClient( ClientAccess ); - - protected: - - /** called when the last client has been revoked - @precond - <member>m_aMutex</member> is locked - */ - virtual void onLastClient(); - private: OModule( const OModule& ) = delete; OModule& operator=( const OModule& ) = delete; }; - //= OModuleClient - - /** base class for objects which uses any global module-specific resources - */ - class COMPHELPER_DLLPUBLIC OModuleClient - { - protected: - OModule& m_rModule; - - public: - OModuleClient( OModule& _rModule ) :m_rModule( _rModule ) { m_rModule.registerClient( OModule::ClientAccess() ); } - ~OModuleClient() { m_rModule.revokeClient( OModule::ClientAccess() ); } - }; - - //= OAutoRegistration template <class TYPE> |