From 1df632a0e6e550a5a100247c6b4713078e78f413 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 21 Apr 2019 23:28:33 +0900 Subject: Removed unnecessary and/or TDE-unrelated code. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michele Calgaro Signed-off-by: Slávek Banko --- tqtinterface/qt4/plugins/src/codecs/tw/main.cpp | 47 ------------------------- 1 file changed, 47 deletions(-) delete mode 100644 tqtinterface/qt4/plugins/src/codecs/tw/main.cpp (limited to 'tqtinterface/qt4/plugins/src/codecs/tw/main.cpp') diff --git a/tqtinterface/qt4/plugins/src/codecs/tw/main.cpp b/tqtinterface/qt4/plugins/src/codecs/tw/main.cpp deleted file mode 100644 index 6991b33..0000000 --- a/tqtinterface/qt4/plugins/src/codecs/tw/main.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include -#include - -#include -#include - - -class TWTextCodecs : public TQTextCodecPlugin -{ -public: - TWTextCodecs() {} - - TQStringList names() const { return TQStringList() << "Big5" << "big5*-0"; } - TQValueList mibEnums() const { return TQValueList() << 2026 << -2026; } - TQTextCodec *createForMib( int ); - TQTextCodec *createForName( const TQString & ); -}; - -TQTextCodec *TWTextCodecs::createForMib( int mib ) -{ - switch (mib) { - case -2026: - return new TQFontBig5Codec; - case 2026: - return new TQBig5Codec; - default: - ; - } - - return 0; -} - - -TQTextCodec *TWTextCodecs::createForName( const TQString &name ) -{ - if (name == "Big5") - return new TQBig5Codec; - if (name == "big5*-0") - return new TQFontBig5Codec; - - return 0; -} - - -TQ_EXPORT_PLUGIN( TWTextCodecs ); - -- cgit v1.2.3