summaryrefslogtreecommitdiffstats
path: root/lingucomponent/source/lingutil/lingutil.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lingucomponent/source/lingutil/lingutil.cxx')
-rw-r--r--lingucomponent/source/lingutil/lingutil.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx
index 48fe7c582134..5543a66a9dc7 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -208,11 +208,7 @@ void MergeNewStyleDicsAndOldStyleDics(
DBG_ASSERT( nOldStyleDics, "old style dictionary with more then one language found!");
if (nOldStyleDics > 0)
{
- /* TODO: this conversion exists only to check with
- * LinguIsUnspecified(), add another check that takes the tag
- * string instead. */
- LanguageType nLang = LanguageTag::convertToLanguageTypeWithFallback( aIt2->aLocaleNames[0] );
- if (nLang == LANGUAGE_DONTKNOW || linguistic::LinguIsUnspecified( nLang))
+ if (linguistic::LinguIsUnspecified( aIt2->aLocaleNames[0]))
{
OSL_FAIL( "old style dictionary with invalid language found!" );
continue;