summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-14 11:44:18 +0200
committerNoel Grandin <noel@peralex.com>2016-01-14 11:45:21 +0200
commitfe0e43a3764b923dd578019765cc1cc949cd56dd (patch)
tree860370c0f0298e0e05b4d7c16a82b052eb46f8a1 /scripting
parent5669ea31ddacf87bab6283dc9de0aeccb761b5cb (diff)
loplugin:unusedmethods unused return value in scripting
Change-Id: I9b203e255eddce59c37df1a94884e459df034459
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/stringresource/stringresource.cxx19
-rw-r--r--scripting/source/stringresource/stringresource.hxx4
2 files changed, 0 insertions, 23 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 5a93fc7fcb29..f37c4e8fc4e7 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -734,25 +734,6 @@ void StringResourceImpl::implLoadAllLocales()
}
-Reference< XMultiComponentFactory > StringResourceImpl::getMultiComponentFactory()
-{
- ::osl::MutexGuard aGuard( getMutex() );
-
- if( !m_xMCF.is() )
- {
- Reference< XMultiComponentFactory > xSMgr( m_xContext->getServiceManager(), UNO_QUERY );
- if( !xSMgr.is() )
- {
- throw RuntimeException(
- "StringResourceImpl::getMultiComponentFactory: Couldn't instantiate MultiComponentFactory" );
- }
- m_xMCF = xSMgr;
- }
- return m_xMCF;
-}
-
-
-
// StringResourcePersistenceImpl
diff --git a/scripting/source/stringresource/stringresource.hxx b/scripting/source/stringresource/stringresource.hxx
index 7d4dc714ee90..5d57ea405bc3 100644
--- a/scripting/source/stringresource/stringresource.hxx
+++ b/scripting/source/stringresource/stringresource.hxx
@@ -123,10 +123,6 @@ protected:
void implCheckReadOnly( const sal_Char* pExceptionMsg )
throw (css::lang::NoSupportException);
- // Return the context's MultiComponentFactory
- css::uno::Reference< css::lang::XMultiComponentFactory >
- getMultiComponentFactory();
-
// Returns the LocalItem for a given locale, if it exists, otherwise NULL
// This method compares the locales exactly, no closest match search is performed
LocaleItem* getItemForLocale( const css::lang::Locale& locale, bool bException )