diff --git a/src/modules/locale/LocaleConfiguration.cpp b/src/modules/locale/LocaleConfiguration.cpp index 3377b11f3..da8d4d0f3 100644 --- a/src/modules/locale/LocaleConfiguration.cpp +++ b/src/modules/locale/LocaleConfiguration.cpp @@ -71,23 +71,6 @@ LocaleConfiguration::fromLanguageAndLocation( const QString& languageLocale, { lang = linesForLanguage.first(); } - else - { - QStringList linesForLanguageUtf; - // FIXME: this might be useless if we already filter out non-UTF8 locales - foreach ( QString line, linesForLanguage ) - { - if ( line.contains( "UTF-8", Qt::CaseInsensitive ) || line.contains( "utf8", Qt::CaseInsensitive ) ) - { - linesForLanguageUtf.append( line ); - } - } - - if ( linesForLanguageUtf.length() == 1 ) - { - lang = linesForLanguageUtf.first(); - } - } // lang could still be empty if we found multiple locales that satisfy myLanguage