summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-18 13:43:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-18 13:47:29 +0200
commit1f38a0fe112c6293d04357ad2082255aaaf7e7b3 (patch)
treec94aa792cbf06bf91add7357b82daeadfc049622
parentfeddb8cb73db799e89b84ea8fd8c2057fdebca91 (diff)
unused nResMaxNumberOfSuggestions in PropertyHelper_Spell
since commit a111044babf3ee929baf548b7ad29df0a419293b Date: Wed Jul 15 10:49:17 2015 +0200 loplugin:unusedmethods linguistic Change-Id: I329c53b739395e9332b767562a138b52ce2fe588
-rw-r--r--include/linguistic/lngprophelp.hxx3
-rw-r--r--linguistic/source/lngprophelp.cxx5
2 files changed, 1 insertions, 7 deletions
diff --git a/include/linguistic/lngprophelp.hxx b/include/linguistic/lngprophelp.hxx
index 6a52633f681b..f8613deb454e 100644
--- a/include/linguistic/lngprophelp.hxx
+++ b/include/linguistic/lngprophelp.hxx
@@ -175,7 +175,6 @@ class LNG_DLLPUBLIC PropertyHelper_Spell :
bool bIsSpellCapitalization;
// return values, will be set to default value or current temporary value
- sal_Int16 nResMaxNumberOfSuggestions; // special value that is not part of the property set and thus needs to be handled differently
bool bResIsSpellUpperCase;
bool bResIsSpellWithDigits;
bool bResIsSpellCapitalization;
@@ -202,8 +201,6 @@ public:
virtual void SAL_CALL
propertyChange( const css::beans::PropertyChangeEvent& rEvt ) override;
- static sal_Int16 GetDefaultNumberOfSuggestions() { return 16; }
-
bool IsSpellUpperCase() const { return bResIsSpellUpperCase; }
bool IsSpellWithDigits() const { return bResIsSpellWithDigits; }
bool IsSpellCapitalization() const { return bResIsSpellCapitalization; }
diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx
index 0bf1a52db3fc..475b9c505525 100644
--- a/linguistic/source/lngprophelp.cxx
+++ b/linguistic/source/lngprophelp.cxx
@@ -342,8 +342,6 @@ PropertyHelper_Spell::PropertyHelper_Spell(
AddPropNames( aSP, SAL_N_ELEMENTS(aSP) );
SetDefaultValues();
GetCurrentValues();
-
- nResMaxNumberOfSuggestions = GetDefaultNumberOfSuggestions();
}
@@ -474,7 +472,6 @@ void PropertyHelper_Spell::SetTmpPropVals( const PropertyValues &rPropVals )
// return value is default value unless there is an explicitly supplied
// temporary value
- nResMaxNumberOfSuggestions = GetDefaultNumberOfSuggestions();
bResIsSpellWithDigits = bIsSpellWithDigits;
bResIsSpellCapitalization = bIsSpellCapitalization;
bResIsSpellUpperCase = bIsSpellUpperCase;
@@ -487,7 +484,7 @@ void PropertyHelper_Spell::SetTmpPropVals( const PropertyValues &rPropVals )
{
if ( pVal[i].Name == UPN_MAX_NUMBER_OF_SUGGESTIONS )
{
- pVal[i].Value >>= nResMaxNumberOfSuggestions;
+ // special value that is not part of the property set and thus needs to be handled differently
}
else
{