Clean up BTTVEmotes class

This commit is contained in:
Rasmus Karlsson
2018-06-07 12:22:28 +02:00
parent 049329e176
commit 09963700ae
2 changed files with 3 additions and 11 deletions
+1 -6
View File
@@ -19,11 +19,6 @@ QString getEmoteLink(QString urlTemplate, const QString &id, const QString &emot
} // namespace
util::EmoteMap &BTTVEmotes::getBTTVChannelEmoteFromCaches()
{
return _bttvChannelEmoteFromCaches;
}
void BTTVEmotes::loadGlobalEmotes()
{
QString url("https://api.betterttv.net/2/emotes");
@@ -91,7 +86,7 @@ void BTTVEmotes::loadChannelEmotes(const QString &channelName, std::weak_ptr<uti
QString code = emoteObject.value("code").toString();
// emoteObject.value("imageType").toString();
auto emote = this->getBTTVChannelEmoteFromCaches().getOrAdd(id, [&] {
auto emote = this->channelEmoteCache.getOrAdd(id, [&] {
util::EmoteData emoteData;
QString link = linkTemplate;
link.detach();