chore: remove Singleton & replace getIApp with getApp (#5514)
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "common/Singleton.hpp"
|
||||
#include "providers/emoji/Emojis.hpp"
|
||||
#include "providers/twitch/TwitchEmotes.hpp"
|
||||
#include "singletons/helper/GifTimer.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
class Settings;
|
||||
class Paths;
|
||||
|
||||
class IEmotes
|
||||
{
|
||||
public:
|
||||
@@ -20,15 +16,11 @@ public:
|
||||
virtual GIFTimer &getGIFTimer() = 0;
|
||||
};
|
||||
|
||||
class Emotes final : public IEmotes, public Singleton
|
||||
class Emotes final : public IEmotes
|
||||
{
|
||||
public:
|
||||
Emotes();
|
||||
|
||||
void initialize(Settings &settings, const Paths &paths) override;
|
||||
|
||||
bool isIgnoredEmote(const QString &emote);
|
||||
|
||||
ITwitchEmotes *getTwitchEmotes() final
|
||||
{
|
||||
return &this->twitch;
|
||||
|
||||
Reference in New Issue
Block a user