mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Remove unused functions from EmoteManager
This commit is contained in:
parent
d584852bc0
commit
3a8ceede4e
2 changed files with 2 additions and 12 deletions
|
@ -211,11 +211,6 @@ void EmoteManager::reloadFFZChannelEmotes(const QString &channelName,
|
|||
});
|
||||
}
|
||||
|
||||
util::ConcurrentMap<QString, providers::twitch::EmoteValue *> &EmoteManager::getTwitchEmotes()
|
||||
{
|
||||
return _twitchEmotes;
|
||||
}
|
||||
|
||||
util::EmoteMap &EmoteManager::getFFZEmotes()
|
||||
{
|
||||
return ffzGlobalEmotes;
|
||||
|
@ -241,11 +236,6 @@ util::ConcurrentMap<int, util::EmoteData> &EmoteManager::getFFZChannelEmoteFromC
|
|||
return _ffzChannelEmoteFromCaches;
|
||||
}
|
||||
|
||||
util::ConcurrentMap<long, util::EmoteData> &EmoteManager::getTwitchEmoteFromCache()
|
||||
{
|
||||
return _twitchEmoteFromCache;
|
||||
}
|
||||
|
||||
void EmoteManager::loadEmojis()
|
||||
{
|
||||
QFile file(":/emojidata.txt");
|
||||
|
@ -549,6 +539,7 @@ util::EmoteData EmoteManager::getTwitchEmoteById(long id, const QString &emoteNa
|
|||
_emoteName.replace("<", "<");
|
||||
_emoteName.replace(">", ">");
|
||||
|
||||
// clang-format off
|
||||
static QMap<QString, QString> emoteNameReplacements{
|
||||
{"[oO](_|\\.)[oO]", "O_o"}, {"\\>\\;\\(", ">("}, {"\\<\\;3", "<3"},
|
||||
{"\\:-?(o|O)", ":O"}, {"\\:-?(p|P)", ":P"}, {"\\:-?[\\\\/]", ":/"},
|
||||
|
@ -556,6 +547,7 @@ util::EmoteData EmoteManager::getTwitchEmoteById(long id, const QString &emoteNa
|
|||
{"\\:-?D", ":D"}, {"\\;-?(p|P)", ";P"}, {"\\;-?\\)", ";)"},
|
||||
{"R-?\\)", "R)"}, {"B-?\\)", "B)"},
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
auto it = emoteNameReplacements.find(_emoteName);
|
||||
if (it != emoteNameReplacements.end()) {
|
||||
|
|
|
@ -34,13 +34,11 @@ public:
|
|||
void reloadFFZChannelEmotes(const QString &channelName,
|
||||
std::weak_ptr<util::EmoteMap> channelEmoteMap);
|
||||
|
||||
util::ConcurrentMap<QString, providers::twitch::EmoteValue *> &getTwitchEmotes();
|
||||
util::EmoteMap &getFFZEmotes();
|
||||
util::EmoteMap &getChatterinoEmotes();
|
||||
util::EmoteMap &getBTTVChannelEmoteFromCaches();
|
||||
util::EmojiMap &getEmojis();
|
||||
util::ConcurrentMap<int, util::EmoteData> &getFFZChannelEmoteFromCaches();
|
||||
util::ConcurrentMap<long, util::EmoteData> &getTwitchEmoteFromCache();
|
||||
|
||||
util::EmoteData getCheerImage(long long int amount, bool animated);
|
||||
|
||||
|
|
Loading…
Reference in a new issue