Skip to content

Commit

Permalink
delete LangCoder::icon which is wrong in concept
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlebantongying committed Oct 10, 2024
1 parent 3c2e36d commit 08d3161
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions src/langcoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
2 changes: 0 additions & 2 deletions src/langcoder.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 08d3161

Please sign in to comment.