Remove an unused function

This commit is contained in:
louiz’
2018-03-12 01:34:10 +01:00
parent 8fa050abb2
commit 06438fe8ec
2 changed files with 0 additions and 7 deletions
-6
View File
@@ -53,11 +53,5 @@ std::unique_ptr<IrcUser> IrcChannel::remove_user(const IrcUser* user)
this->joined = false; this->joined = false;
} }
} }
}
void IrcChannel::remove_all_users()
{
this->users.clear();
this->self = nullptr;
return result; return result;
} }
-1
View File
@@ -32,7 +32,6 @@ public:
IrcUser* add_user(const std::string& name, IrcUser* add_user(const std::string& name,
const std::map<char, char>& prefix_to_mode); const std::map<char, char>& prefix_to_mode);
IrcUser* find_user(const std::string& name) const; IrcUser* find_user(const std::string& name) const;
void remove_all_users();
std::unique_ptr<IrcUser> remove_user(const IrcUser* user); std::unique_ptr<IrcUser> remove_user(const IrcUser* user);
const std::vector<std::unique_ptr<IrcUser>>& get_users() const const std::vector<std::unique_ptr<IrcUser>>& get_users() const
{ return this->users; } { return this->users; }