summaryrefslogtreecommitdiff
path: root/include/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-23 13:44:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-23 21:11:32 +0200
commit4bb2bca091ffa0cc8a5f4a850eef146bb66feaa0 (patch)
treee5cbebaf295f857d73ac73a1d3ea9f542961b898 /include/unotools
parent3c077e587d36170be53bad90bd5c87364295426c (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/unotools')
-rw-r--r--include/unotools/componentresmodule.hxx73
1 files changed, 0 insertions, 73 deletions
diff --git a/include/unotools/componentresmodule.hxx b/include/unotools/componentresmodule.hxx
index 127954d7dfb9..ee19e99f53b0 100644
--- a/include/unotools/componentresmodule.hxx
+++ b/include/unotools/componentresmodule.hxx
@@ -31,8 +31,6 @@ namespace utl
class OComponentResModuleImpl;
- //= OComponentResourceModule
-
/** extends the comphelper::OModule implementation with
simply resource access
*/
@@ -52,77 +50,6 @@ namespace utl
const std::locale& getResLocale();
};
- //= defining a concrete module
-
-#define DEFINE_MODULE( ModuleClass, ClientClass ) \
- /* -------------------------------------------------------------------- */ \
- class ModuleClass : public ::utl::OComponentResourceModule \
- { \
- friend struct CreateModuleClass; \
- typedef ::utl::OComponentResourceModule BaseClass; \
- \
- public: \
- static ModuleClass& getInstance(); \
- \
- private: \
- ModuleClass(); \
- }; \
- \
- /* -------------------------------------------------------------------- */ \
- class ClientClass : public ::comphelper::OModuleClient \
- { \
- private: \
- typedef ::comphelper::OModuleClient BaseClass; \
- \
- public: \
- ClientClass() : BaseClass( ModuleClass::getInstance() ) \
- { \
- } \
- }; \
- \
- /* -------------------------------------------------------------------- */ \
- template < class TYPE > \
- class OAutoRegistration : public ::comphelper::OAutoRegistration< TYPE > \
- { \
- private: \
- typedef ::comphelper::OAutoRegistration< TYPE > BaseClass; \
- \
- public: \
- OAutoRegistration() : BaseClass( ModuleClass::getInstance() ) \
- { \
- } \
- };
-
- //= implementing a concrete module
-
-#define IMPLEMENT_MODULE( ModuleClass, resprefix ) \
- struct CreateModuleClass \
- { \
- ModuleClass* operator()() \
- { \
- static ModuleClass* pModule = new ModuleClass; \
- return pModule; \
- /* yes, in theory, this is a resource leak, since the ModuleClass \
- will never be cleaned up. However, using a non-heap instance of ModuleClass \
- would not work: It would be cleaned up when the module is unloaded. \
- This might happen (and is likely to happen) *after* the tools-library \
- has been unloaded. However, the module's dtor is where we would delete \
- our resource manager (in case not all our clients de-registered) - which \
- would call into the already-unloaded tools-library. */ \
- } \
- }; \
- \
- ModuleClass::ModuleClass() \
- :BaseClass( OString( resprefix ), Application::GetSettings().GetUILanguageTag() ) \
- { \
- } \
- \
- ModuleClass& ModuleClass::getInstance() \
- { \
- return *rtl_Instance< ModuleClass, CreateModuleClass, ::osl::MutexGuard, ::osl::GetGlobalMutex >:: \
- create( CreateModuleClass(), ::osl::GetGlobalMutex() ); \
- } \
-
} // namespace utl
#endif // INCLUDED_UNOTOOLS_COMPONENTRESMODULE_HXX