From 902c96ee53db6d5cbe2c21c9424c89e1e0088cb1 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 7 Sep 2020 00:27:41 -0400 Subject: use a singleton (oh no) instead of passing Abaddon* everywhere --- components/channels.hpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'components/channels.hpp') diff --git a/components/channels.hpp b/components/channels.hpp index 2747724..ad0879b 100644 --- a/components/channels.hpp +++ b/components/channels.hpp @@ -6,7 +6,6 @@ #include #include "../discord/discord.hpp" -class Abaddon; class ChannelList { public: ChannelList(); @@ -14,8 +13,6 @@ public: void SetListingFromGuilds(const DiscordClient::guilds_type &guilds); void ClearListing(); - void SetAbaddon(Abaddon *ptr); - protected: Gtk::ListBox *m_list; Gtk::ScrolledWindow *m_main; @@ -54,6 +51,4 @@ protected: void AddPrivateChannels(); // retard moment void SetListingFromGuildsInternal(); void AttachMenuHandler(Gtk::ListBoxRow *row); - - Abaddon *m_abaddon = nullptr; }; -- cgit v1.2.3