From 1b80ad7246db991596f44ca58c4e4bd1e387e524 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 22 Dec 2015 09:58:45 +0200 Subject: loplugin:unusedfields in lingu,lotuswordpro,mysqlc Change-Id: I5866c8d95e04714e81a45e73bf00a430859a4327 --- lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx | 1 - lingucomponent/source/languageguessing/guesslang.cxx | 12 +++++------- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'lingucomponent') diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx index 73fc6280edf6..e59ab94497af 100644 --- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx +++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx @@ -70,7 +70,6 @@ class Hyphenator : sal_Int32 numdict; ::cppu::OInterfaceContainerHelper aEvtListeners; - Reference< XMultiServiceFactory > rSMgr; linguistic::PropertyHelper_Hyphenation* pPropHelper; bool bDisposing; diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx index 0cc0054e4b49..2ccea80002d2 100644 --- a/lingucomponent/source/languageguessing/guesslang.cxx +++ b/lingucomponent/source/languageguessing/guesslang.cxx @@ -80,13 +80,12 @@ class LangGuess_Impl : { SimpleGuesser m_aGuesser; bool m_bInitialized; - css::uno::Reference< css::uno::XComponentContext > m_xContext; virtual ~LangGuess_Impl() {} void EnsureInitialized(); public: - explicit LangGuess_Impl(css::uno::Reference< css::uno::XComponentContext > const & rxContext); + LangGuess_Impl(); // XServiceInfo implementation virtual OUString SAL_CALL getImplementationName( ) throw(RuntimeException, std::exception) override; @@ -106,9 +105,8 @@ public: void SetFingerPrintsDB( const OUString &fileName ) throw (RuntimeException); }; -LangGuess_Impl::LangGuess_Impl(css::uno::Reference< css::uno::XComponentContext > const & rxContext) : - m_bInitialized( false ), - m_xContext( rxContext ) +LangGuess_Impl::LangGuess_Impl() : + m_bInitialized( false ) { } @@ -351,9 +349,9 @@ Sequence SAL_CALL LangGuess_Impl::getSupportedServiceNames_Static( ) * @param xMgr service manager to if the components needs other component instances */ Reference< XInterface > SAL_CALL LangGuess_Impl_create( - Reference< XComponentContext > const & xContext ) + Reference< XComponentContext > const & ) { - return static_cast< ::cppu::OWeakObject * >( new LangGuess_Impl(xContext) ); + return static_cast< ::cppu::OWeakObject * >( new LangGuess_Impl ); } //#### EXPORTED ### functions to allow for registration and creation of the UNO component -- cgit