~singpolyma/biboumi

06438fe8ecf5eea62456e6da41c13bad916664fc — louiz’ 4 years ago 8fa050a
Remove an unused function
2 files changed, 0 insertions(+), 7 deletions(-)

M src/irc/irc_channel.cpp
M src/irc/irc_channel.hpp
M src/irc/irc_channel.cpp => src/irc/irc_channel.cpp +0 -6
@@ 53,11 53,5 @@ std::unique_ptr<IrcUser> IrcChannel::remove_user(const IrcUser* user)
          this->joined = false;
        }
    }
}

void IrcChannel::remove_all_users()
{
  this->users.clear();
  this->self = nullptr;
  return result;
}

M src/irc/irc_channel.hpp => src/irc/irc_channel.hpp +0 -1
@@ 32,7 32,6 @@ public:
  IrcUser* add_user(const std::string& name,
                    const std::map<char, char>& prefix_to_mode);
  IrcUser* find_user(const std::string& name) const;
  void remove_all_users();
  std::unique_ptr<IrcUser> remove_user(const IrcUser* user);
  const std::vector<std::unique_ptr<IrcUser>>& get_users() const
  { return this->users; }