From 06438fe8ecf5eea62456e6da41c13bad916664fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Mon, 12 Mar 2018 01:34:10 +0100 Subject: [PATCH] Remove an unused function --- src/irc/irc_channel.cpp | 6 ------ src/irc/irc_channel.hpp | 1 - 2 files changed, 7 deletions(-) diff --git a/src/irc/irc_channel.cpp b/src/irc/irc_channel.cpp index 58f8d5c..2dd20fe 100644 --- a/src/irc/irc_channel.cpp +++ b/src/irc/irc_channel.cpp @@ -53,11 +53,5 @@ std::unique_ptr IrcChannel::remove_user(const IrcUser* user) this->joined = false; } } -} - -void IrcChannel::remove_all_users() -{ - this->users.clear(); - this->self = nullptr; return result; } diff --git a/src/irc/irc_channel.hpp b/src/irc/irc_channel.hpp index ee89209..7000ada 100644 --- a/src/irc/irc_channel.hpp +++ b/src/irc/irc_channel.hpp @@ -32,7 +32,6 @@ public: IrcUser* add_user(const std::string& name, const std::map& prefix_to_mode); IrcUser* find_user(const std::string& name) const; - void remove_all_users(); std::unique_ptr remove_user(const IrcUser* user); const std::vector>& get_users() const { return this->users; } -- 2.45.2