diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-09-07 00:27:41 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-09-07 00:27:41 -0400 |
commit | 902c96ee53db6d5cbe2c21c9424c89e1e0088cb1 (patch) | |
tree | a6703d9cb6c7b35a638a8ef2e1ef6060fbd00759 /components/channels.hpp | |
parent | 3832ff9a15f448ba15d60e91b949f21d3295fc24 (diff) | |
download | abaddon-portaudio-902c96ee53db6d5cbe2c21c9424c89e1e0088cb1.tar.gz abaddon-portaudio-902c96ee53db6d5cbe2c21c9424c89e1e0088cb1.zip |
use a singleton (oh no) instead of passing Abaddon* everywhere
Diffstat (limited to 'components/channels.hpp')
-rw-r--r-- | components/channels.hpp | 5 |
1 files changed, 0 insertions, 5 deletions
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 <unordered_set> #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; }; |