[Libreoffice-commits] core.git: include/linguistic linguistic/source
Noel Grandin
noel at peralex.com
Wed Jul 15 06:04:01 PDT 2015
include/linguistic/hyphdta.hxx | 11 -----------
include/linguistic/lngprophelp.hxx | 4 ----
linguistic/source/convdicxml.hxx | 3 +--
linguistic/source/defs.hxx | 6 ------
linguistic/source/gciterator.cxx | 8 --------
linguistic/source/gciterator.hxx | 1 -
linguistic/source/hyphdsp.cxx | 7 -------
linguistic/source/hyphdsp.hxx | 2 --
linguistic/source/lngopt.hxx | 3 ---
linguistic/source/spelldsp.cxx | 5 -----
linguistic/source/spelldsp.hxx | 1 -
linguistic/source/thesdsp.cxx | 7 -------
linguistic/source/thesdsp.hxx | 2 --
13 files changed, 1 insertion(+), 59 deletions(-)
New commits:
commit a111044babf3ee929baf548b7ad29df0a419293b
Author: Noel Grandin <noel at peralex.com>
Date: Wed Jul 15 10:49:17 2015 +0200
loplugin:unusedmethods linguistic
Change-Id: I0a2aac4965c444dbd868515549dcc9b1571166cb
Reviewed-on: https://gerrit.libreoffice.org/17067
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/include/linguistic/hyphdta.hxx b/include/linguistic/hyphdta.hxx
index 5909451..c080f47 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 60556d9..ce618d4 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 4276aa5..3828130 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 b6eca65..ba67076 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 a489f35..b15acb1 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 bb744c1..824b04af 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 1bf78a3..fc93d5d 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 1c32f83..abb3ed7 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 a026d79..47c95d2 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 a238465..83bfbad 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 c88ed24..18ddf27 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 4386f40..2ccb855 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 a633f18..40832d8 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;
};
More information about the Libreoffice-commits
mailing list