From 32d4173fda7608c4de66b7b29fa851bcaf67f56f Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 20 Sep 2021 21:46:01 +0100 Subject: [PATCH] COMMON: Remove unused and useless getCurrentCharset in TransMan Now all translations use unicode. --- common/translation.cpp | 6 ------ common/translation.h | 5 ----- 2 files changed, 11 deletions(-) diff --git a/common/translation.cpp b/common/translation.cpp index 13835fa3180..b1599db0775 100644 --- a/common/translation.cpp +++ b/common/translation.cpp @@ -164,12 +164,6 @@ U32String TranslationManager::getTranslation(const char *message, const char *co return U32String(message); } -String TranslationManager::getCurrentCharset() const { - if (_currentCharset.empty()) - return "ASCII"; - return _currentCharset; -} - String TranslationManager::getCurrentLanguage() const { if (_currentLang == -1) return "en"; diff --git a/common/translation.h b/common/translation.h index 1b47ad0a470..583718aac23 100644 --- a/common/translation.h +++ b/common/translation.h @@ -182,11 +182,6 @@ public: */ const TLangArray getSupportedLanguageNames() const; - /** - * Return the charset specified by the selected translation language. - */ - String getCurrentCharset() const; - /** * Return the currently selected translation language. */