diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-15 10:49:17 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-15 13:03:34 +0000 |
commit | a111044babf3ee929baf548b7ad29df0a419293b (patch) | |
tree | 8cf76a780fdf714a4dda0aac88bda6fa94a8d874 | |
parent | d1046e7c3f66e5f3384ee1ef534ef28346702fc6 (diff) |
loplugin:unusedmethods linguistic
Change-Id: I0a2aac4965c444dbd868515549dcc9b1571166cb
Reviewed-on: https://gerrit.libreoffice.org/17067
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | include/linguistic/hyphdta.hxx | 11 | ||||
-rw-r--r-- | include/linguistic/lngprophelp.hxx | 4 | ||||
-rw-r--r-- | linguistic/source/convdicxml.hxx | 3 | ||||
-rw-r--r-- | linguistic/source/defs.hxx | 6 | ||||
-rw-r--r-- | linguistic/source/gciterator.cxx | 8 | ||||
-rw-r--r-- | linguistic/source/gciterator.hxx | 1 | ||||
-rw-r--r-- | linguistic/source/hyphdsp.cxx | 7 | ||||
-rw-r--r-- | linguistic/source/hyphdsp.hxx | 2 | ||||
-rw-r--r-- | linguistic/source/lngopt.hxx | 3 | ||||
-rw-r--r-- | linguistic/source/spelldsp.cxx | 5 | ||||
-rw-r--r-- | linguistic/source/spelldsp.hxx | 1 | ||||
-rw-r--r-- | linguistic/source/thesdsp.cxx | 7 | ||||
-rw-r--r-- | linguistic/source/thesdsp.hxx | 2 |
13 files changed, 1 insertions, 59 deletions
diff --git a/include/linguistic/hyphdta.hxx b/include/linguistic/hyphdta.hxx index 59094519617b..c080f47677ae 100644 --- a/include/linguistic/hyphdta.hxx +++ b/include/linguistic/hyphdta.hxx @@ -69,12 +69,6 @@ public: isAlternativeSpelling() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - OUString GetWord() { return aWord; } - OUString GetHyphenatedWord() { return aHyphenatedWord; } - sal_Int16 GetLanguage() { return nLanguage; } - void SetWord( OUString &rTxt ) { aWord = rTxt; } - void SetHyphenatedWord( OUString &rTxt ) { aHyphenatedWord = rTxt; } - void SetLanguage( sal_Int16 nLang ) { nLanguage = nLang; } static com::sun::star::uno::Reference <com::sun::star::linguistic2::XHyphenatedWord> LNG_DLLPUBLIC CreateHyphenatedWord( const OUString &rWord, sal_Int16 nLang, sal_Int16 nHyphenationPos, const OUString &rHyphenatedWord, sal_Int16 nHyphenPos ); @@ -115,11 +109,6 @@ public: getHyphenationPositions() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - OUString GetWord() { return aWord; } - sal_Int16 GetLanguage() { return nLanguage; } - void SetWord( OUString &rTxt ) { aWord = rTxt; } - void SetLanguage( sal_Int16 nLang ) { nLanguage = nLang; } - static com::sun::star::uno::Reference < com::sun::star::linguistic2::XPossibleHyphens > LNG_DLLPUBLIC CreatePossibleHyphens (const OUString &rWord, sal_Int16 nLang, const OUString &rHyphWord, diff --git a/include/linguistic/lngprophelp.hxx b/include/linguistic/lngprophelp.hxx index 60556d9d11d5..ce618d448ac5 100644 --- a/include/linguistic/lngprophelp.hxx +++ b/include/linguistic/lngprophelp.hxx @@ -140,9 +140,6 @@ public: const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & GetEvtObj() const { return xMyEvtObj; } - - bool IsIgnoreControlCharacters() const { return bResIsIgnoreControlCharacters; } - bool IsUseDictionaryList() const { return bResIsUseDictionaryList; } }; @@ -229,7 +226,6 @@ public: static sal_Int16 GetDefaultNumberOfSuggestions() { return 16; } - sal_Int16 GetMaxNumberOfSuggestions() const { return nResMaxNumberOfSuggestions; } bool IsSpellUpperCase() const { return bResIsSpellUpperCase; } bool IsSpellWithDigits() const { return bResIsSpellWithDigits; } bool IsSpellCapitalization() const { return bResIsSpellCapitalization; } diff --git a/linguistic/source/convdicxml.hxx b/linguistic/source/convdicxml.hxx index 4276aa569c07..382813015816 100644 --- a/linguistic/source/convdicxml.hxx +++ b/linguistic/source/convdicxml.hxx @@ -104,9 +104,8 @@ public: const com::sun::star::uno::Reference < com::sun::star::xml::sax::XAttributeList > &rxAttrList ) SAL_OVERRIDE; ConvDic * GetDic() { return pDic; } - sal_Int16 GetLanguage() const { return nLanguage; } + sal_Int16 GetLanguage() const { return nLanguage; } sal_Int16 GetConversionType() const { return nConversionType; } - bool GetSuccess() const { return bSuccess; } void SetLanguage( sal_Int16 nLang ) { nLanguage = nLang; } void SetConversionType( sal_Int16 nType ) { nConversionType = nType; } diff --git a/linguistic/source/defs.hxx b/linguistic/source/defs.hxx index b6eca651d4f8..ba67076cc0f8 100644 --- a/linguistic/source/defs.hxx +++ b/linguistic/source/defs.hxx @@ -56,11 +56,6 @@ struct LangSvcEntries aSvcImplNames[0] = rSvcImplName; } - bool IsAlreadyWarned() const { return bAlreadyWarned; } - void SetAlreadyWarned( bool bVal ) { bAlreadyWarned = bVal; } - bool IsDoWarnAgain() const { return bDoWarnAgain; } - void SetDoWarnAgain( bool bVal ) { bDoWarnAgain = bVal; } - inline void Clear() { aSvcImplNames.realloc(0); @@ -111,7 +106,6 @@ public: virtual void SetServiceList( const css::lang::Locale &rLocale, const css::uno::Sequence< OUString > &rSvcImplNames ) = 0; virtual css::uno::Sequence< OUString > GetServiceList( const css::lang::Locale &rLocale ) const = 0; - virtual DspType GetDspType() const = 0; protected: ~LinguDispatcher() {} diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index a489f35215db..b15acb1e6474 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -1132,14 +1132,6 @@ uno::Sequence< OUString > GrammarCheckingIterator::GetServiceList( } -LinguDispatcher::DspType GrammarCheckingIterator::GetDspType() const -{ - return DSP_GRAMMAR; -} - - - - static OUString GrammarCheckingIterator_getImplementationName() throw() { return OUString( "com.sun.star.lingu2.ProofreadingIterator" ); diff --git a/linguistic/source/gciterator.hxx b/linguistic/source/gciterator.hxx index bb744c16e611..824b04af14d0 100644 --- a/linguistic/source/gciterator.hxx +++ b/linguistic/source/gciterator.hxx @@ -180,7 +180,6 @@ public: // LinguDispatcher virtual void SetServiceList( const ::com::sun::star::lang::Locale &rLocale, const ::com::sun::star::uno::Sequence< OUString > &rSvcImplNames ) SAL_OVERRIDE; virtual ::com::sun::star::uno::Sequence< OUString > GetServiceList( const ::com::sun::star::lang::Locale &rLocale ) const SAL_OVERRIDE; - virtual DspType GetDspType() const SAL_OVERRIDE; }; diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx index 1bf78a311604..fc93d5d97ad0 100644 --- a/linguistic/source/hyphdsp.cxx +++ b/linguistic/source/hyphdsp.cxx @@ -712,11 +712,4 @@ Sequence< OUString > } -LinguDispatcher::DspType HyphenatorDispatcher::GetDspType() const -{ - return DSP_HYPH; -} - - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/hyphdsp.hxx b/linguistic/source/hyphdsp.hxx index 1c32f8341ce2..abb3ed7fc5c9 100644 --- a/linguistic/source/hyphdsp.hxx +++ b/linguistic/source/hyphdsp.hxx @@ -131,8 +131,6 @@ public: OUString > &rSvcImplNames ) SAL_OVERRIDE; virtual ::com::sun::star::uno::Sequence< OUString > GetServiceList( const ::com::sun::star::lang::Locale &rLocale ) const SAL_OVERRIDE; - virtual DspType - GetDspType() const SAL_OVERRIDE; }; diff --git a/linguistic/source/lngopt.hxx b/linguistic/source/lngopt.hxx index a026d79f89dd..47c95d249fe8 100644 --- a/linguistic/source/lngopt.hxx +++ b/linguistic/source/lngopt.hxx @@ -61,9 +61,6 @@ public: const ::com::sun::star::uno::Sequence< OUString > GetActiveDics() const { return pData->aActiveDics; } - - const ::com::sun::star::uno::Sequence< OUString > - GetActiveConvDics() const { return pData->aActiveConvDics; } }; typedef cppu::OMultiTypeInterfaceContainerHelperVar<sal_Int32> diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx index a23846506b09..83bfbadada9a 100644 --- a/linguistic/source/spelldsp.cxx +++ b/linguistic/source/spelldsp.cxx @@ -846,11 +846,6 @@ Sequence< OUString > } -LinguDispatcher::DspType SpellCheckerDispatcher::GetDspType() const -{ - return DSP_SPELL; -} - void SpellCheckerDispatcher::FlushSpellCache() { if (pCache) diff --git a/linguistic/source/spelldsp.hxx b/linguistic/source/spelldsp.hxx index c88ed244be07..18ddf277caec 100644 --- a/linguistic/source/spelldsp.hxx +++ b/linguistic/source/spelldsp.hxx @@ -116,7 +116,6 @@ public: // LinguDispatcher virtual void SetServiceList( const ::com::sun::star::lang::Locale &rLocale, const ::com::sun::star::uno::Sequence< OUString > &rSvcImplNames ) SAL_OVERRIDE; virtual ::com::sun::star::uno::Sequence< OUString > GetServiceList( const ::com::sun::star::lang::Locale &rLocale ) const SAL_OVERRIDE; - virtual DspType GetDspType() const SAL_OVERRIDE; void FlushSpellCache(); diff --git a/linguistic/source/thesdsp.cxx b/linguistic/source/thesdsp.cxx index 4386f400c985..2ccb8550921a 100644 --- a/linguistic/source/thesdsp.cxx +++ b/linguistic/source/thesdsp.cxx @@ -252,11 +252,4 @@ Sequence< OUString > } -LinguDispatcher::DspType ThesaurusDispatcher::GetDspType() const -{ - return DSP_THES; -} - - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/thesdsp.hxx b/linguistic/source/thesdsp.hxx index a633f181cc15..40832d8053b4 100644 --- a/linguistic/source/thesdsp.hxx +++ b/linguistic/source/thesdsp.hxx @@ -98,8 +98,6 @@ public: OUString > &rSvcImplNames ) SAL_OVERRIDE; virtual ::com::sun::star::uno::Sequence< OUString > GetServiceList( const ::com::sun::star::lang::Locale &rLocale ) const SAL_OVERRIDE; - virtual DspType - GetDspType() const SAL_OVERRIDE; }; |