diff --git a/src/langcoder.cc b/src/langcoder.cc index 12220a54..be112a53 100644 --- a/src/langcoder.cc +++ b/src/langcoder.cc @@ -215,16 +215,6 @@ bool LangCoder::code2Exists( const QString & _code ) return LANG_CODE_MAP.contains( _code ); } -QIcon LangCoder::icon( quint32 _code ) -{ - if ( auto code = intToCode2( _code ); code2Exists( code ) ) { - const GDLangCode & lc = LANG_CODE_MAP[ code ]; - return QIcon( ":/flags/" + QString( lc.code2 ) + ".png" ); - } - - return {}; -} - QString LangCoder::intToCode2( quint32 val ) { if ( !val || val == 0xFFffFFff ) diff --git a/src/langcoder.hh b/src/langcoder.hh index c52b005b..e4aa53c7 100644 --- a/src/langcoder.hh +++ b/src/langcoder.hh @@ -47,8 +47,6 @@ public: /// Returns decoded name of language or empty string if not found. static QString decode( quint32 _code ); - /// Returns icon for language or empty string if not found. - static QIcon icon( quint32 code ); /// Return true for RTL languages static bool isLanguageRTL( quint32 code );