diff --git a/src/singletons/emotemanager.cpp b/src/singletons/emotemanager.cpp index e48e28830..cc11ae5e2 100644 --- a/src/singletons/emotemanager.cpp +++ b/src/singletons/emotemanager.cpp @@ -3,9 +3,6 @@ #include "application.hpp" #include "controllers/accounts/accountcontroller.hpp" -using namespace chatterino::providers::twitch; -using namespace chatterino::messages; - namespace chatterino { namespace singletons { @@ -26,61 +23,3 @@ void EmoteManager::initialize() } // namespace singletons } // namespace chatterino - -#if 0 -namespace chatterino { - -void EmojiTest() -{ - auto &emoteManager = singletons::EmoteManager::getInstance(); - - emoteManager.loadEmojis(); - - { - std::vector> dummy; - - // couple_mm 1f468-2764-1f468 - // "\154075\156150❤\154075\156150" - // [0] 55357 0xd83d QChar - // [1] 56424 0xdc68 QChar - // [2] '❤' 10084 0x2764 QChar - // [3] 55357 0xd83d QChar - // [4] 56424 0xdc68 QChar - QString text = "👨❤👨"; - - emoteManager.parseEmojis(dummy, text); - - assert(dummy.size() == 1); - } - - { - std::vector> dummy; - - // "✍\154074\157777" - // [0] '✍' 9997 0x270d QChar - // [1] 55356 0xd83c QChar - // [2] 57343 0xdfff QChar - QString text = "✍🏿"; - - emoteManager.parseEmojis(dummy, text); - - assert(dummy.size() == 1); - - assert(std::get<0>(dummy[0]).isValid()); - } - - { - std::vector> dummy; - - QString text = "✍"; - - emoteManager.parseEmojis(dummy, text); - - assert(dummy.size() == 1); - - assert(std::get<0>(dummy[0]).isValid()); - } -} - -} // namespace chatterino -#endif