Make more use of single pattern

This commit is contained in:
Rasmus Karlsson
2017-12-17 02:18:13 +01:00
parent d5f1c6acec
commit 70cbb9df7f
35 changed files with 146 additions and 249 deletions
+1 -6
View File
@@ -9,17 +9,14 @@
namespace chatterino {
class WindowManager;
class EmoteManager;
class IrcManager;
class ChannelManager
{
public:
explicit ChannelManager(WindowManager &_windowManager, EmoteManager &_emoteManager,
IrcManager &_ircManager);
explicit ChannelManager(WindowManager &_windowManager, IrcManager &_ircManager);
WindowManager &windowManager;
EmoteManager &emoteManager;
IrcManager &ircManager;
const std::vector<std::shared_ptr<Channel>> getItems();
@@ -29,8 +26,6 @@ public:
void removeTwitchChannel(const QString &channel);
const std::string &getUserID(const std::string &username);
EmoteManager &getEmoteManager();
WindowManager &getWindowManager();
void doOnAll(std::function<void(std::shared_ptr<twitch::TwitchChannel>)> func);