Kaydet (Commit) 1f38a0fe authored tarafından Noel Grandin's avatar Noel Grandin

unused nResMaxNumberOfSuggestions in PropertyHelper_Spell

since

    commit a111044b
    Date:   Wed Jul 15 10:49:17 2015 +0200
    loplugin:unusedmethods linguistic

Change-Id: I329c53b739395e9332b767562a138b52ce2fe588
üst feddb8cb
......@@ -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; }
......
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment