delete LangCoder::icon which is wrong in concept

This commit is contained in:
shenleban tongying 2024-10-09 23:53:19 -04:00
parent 3c2e36d040
commit 08d31614ed
2 changed files with 0 additions and 12 deletions

View file

@ -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 )

View file

@ -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 );