[Libreoffice-commits] core.git: sc/source

Caolán McNamara caolanm at redhat.com
Fri Mar 28 09:11:28 PDT 2014


 sc/source/core/tool/cellkeytranslator.cxx |   16 ----------------
 1 file changed, 16 deletions(-)

New commits:
commit f5adf08aa3a9a176bd2ed5acd638148eb8da7c85
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Mar 28 16:06:04 2014 +0000

    coverity#1038286 Logically dead code
    
    Change-Id: Ibbfdbc4925d185852a2b64304ba0983be43a4caa

diff --git a/sc/source/core/tool/cellkeytranslator.cxx b/sc/source/core/tool/cellkeytranslator.cxx
index af13cbe..e2f3dfb 100644
--- a/sc/source/core/tool/cellkeytranslator.cxx
+++ b/sc/source/core/tool/cellkeytranslator.cxx
@@ -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.


More information about the Libreoffice-commits mailing list