coverity#1038286 Logically dead code

Change-Id: Ibbfdbc4925d185852a2b64304ba0983be43a4caa
This commit is contained in:
Caolán McNamara
2014-03-28 16:06:04 +00:00
parent 831b8751fc
commit f5adf08aa3

View File

@@ -137,22 +137,6 @@ static void lclMatchKeyword(OUString& rName, const ScCellKeywordHashMap& aMap,
return;
}
}
else if ( !eOpCode && pLocale )
{
LocaleMatch eLevel = lclLocaleCompare(itrList->mrLocale, aLanguageTag);
if ( eLevel == LOCALE_MATCH_ALL )
{
// Name with matching locale preferred.
rName = OUString::createFromAscii( itrList->mpName );
return;
}
else if ( eLevel > eLocaleMatchLevel )
{
// Name with a better matching locale.
eLocaleMatchLevel = eLevel;
aBestMatchName = itrList->mpName;
}
}
}
// No preferred strings found. Return the best matching name.