Remove unused code

This commit is contained in:
Rasmus Karlsson 2018-06-05 19:00:25 +02:00 committed by fourtf
parent 8db3bf483e
commit f56b2e2fc2
2 changed files with 2 additions and 20 deletions

View file

@ -1,11 +1,8 @@
#include "singletons/emotemanager.hpp"
#include "application.hpp"
#include "common.hpp"
#include "controllers/accounts/accountcontroller.hpp"
#include <QFile>
using namespace chatterino::providers::twitch;
using namespace chatterino::messages;
@ -27,12 +24,6 @@ void EmoteManager::initialize()
this->gifTimer.initialize();
}
util::EmoteData EmoteManager::getCheerImage(long long amount, bool animated)
{
// TODO: fix this xD
return util::EmoteData();
}
} // namespace singletons
} // namespace chatterino

View file

@ -2,14 +2,11 @@
#define GIF_FRAME_LENGTH 33
#include "messages/image.hpp"
#include "providers/bttv/bttvemotes.hpp"
#include "providers/emoji/emojis.hpp"
#include "providers/ffz/ffzemotes.hpp"
#include "providers/twitch/twitchemotes.hpp"
#include "singletons/helper/giftimer.hpp"
#include "util/concurrentmap.hpp"
#include "util/emotemap.hpp"
#include <QString>
@ -21,20 +18,14 @@ class EmoteManager
public:
~EmoteManager() = delete;
void initialize();
providers::twitch::TwitchEmotes twitch;
providers::bttv::BTTVEmotes bttv;
providers::ffz::FFZEmotes ffz;
providers::emoji::Emojis emojis;
GIFTimer gifTimer;
void initialize();
util::EmoteData getCheerImage(long long int amount, bool animated);
// Bit badge/emotes?
// TODO: Move to twitch emote provider
util::ConcurrentMap<QString, messages::Image *> miscImageCache;
};
} // namespace singletons