From 1f38a0fe112c6293d04357ad2082255aaaf7e7b3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 18 Sep 2017 13:43:47 +0200 Subject: unused nResMaxNumberOfSuggestions in PropertyHelper_Spell since commit a111044babf3ee929baf548b7ad29df0a419293b Date: Wed Jul 15 10:49:17 2015 +0200 loplugin:unusedmethods linguistic Change-Id: I329c53b739395e9332b767562a138b52ce2fe588 --- linguistic/source/lngprophelp.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'linguistic') 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 { -- cgit