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>
This commit is contained in:
committed by
Noel Grandin
parent
d1046e7c3f
commit
a111044bab
@@ -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,
|
||||
|
@@ -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; }
|
||||
|
@@ -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; }
|
||||
|
@@ -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() {}
|
||||
|
@@ -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" );
|
||||
|
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
@@ -712,11 +712,4 @@ Sequence< OUString >
|
||||
}
|
||||
|
||||
|
||||
LinguDispatcher::DspType HyphenatorDispatcher::GetDspType() const
|
||||
{
|
||||
return DSP_HYPH;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
@@ -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>
|
||||
|
@@ -846,11 +846,6 @@ Sequence< OUString >
|
||||
}
|
||||
|
||||
|
||||
LinguDispatcher::DspType SpellCheckerDispatcher::GetDspType() const
|
||||
{
|
||||
return DSP_SPELL;
|
||||
}
|
||||
|
||||
void SpellCheckerDispatcher::FlushSpellCache()
|
||||
{
|
||||
if (pCache)
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -252,11 +252,4 @@ Sequence< OUString >
|
||||
}
|
||||
|
||||
|
||||
LinguDispatcher::DspType ThesaurusDispatcher::GetDspType() const
|
||||
{
|
||||
return DSP_THES;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user