~singpolyma/biboumi

b9f6fbd8405c1d16ca637fb32850d44173528e46 — louiz’ 5 years ago 21f69cf
Remove an unused function (and a useless debug log)
2 files changed, 0 insertions(+), 11 deletions(-)

M src/bridge/bridge.cpp
M src/bridge/bridge.hpp
M src/bridge/bridge.cpp => src/bridge/bridge.cpp +0 -10
@@ 1008,7 1008,6 @@ void Bridge::send_room_history(const std::string& hostname, std::string chan_nam
{
#ifdef USE_DATABASE
  const auto goptions = Database::get_global_options(this->user_jid);
  log_debug(goptions.col<Database::MaxHistoryLength>());
  auto limit = goptions.col<Database::MaxHistoryLength>();
  if (limit < 0)
    limit = 20;


@@ 1223,15 1222,6 @@ void Bridge::remove_resource_from_server(const Bridge::IrcHostname& irc_hostname
    }
}

bool Bridge::is_resource_in_server(const Bridge::IrcHostname& irc_hostname, const std::string& resource) const
{
  auto it = this->resources_in_server.find(irc_hostname);
  if (it != this->resources_in_server.end())
    if (it->second.count(resource) == 1)
      return true;
  return false;
}

std::size_t Bridge::number_of_resources_in_chan(const Bridge::ChannelKey& channel) const
{
  auto it = this->resources_in_chan.find(channel);

M src/bridge/bridge.hpp => src/bridge/bridge.hpp +0 -1
@@ 324,7 324,6 @@ private:

  void add_resource_to_server(const IrcHostname& irc_hostname, const std::string& resource);
  void remove_resource_from_server(const IrcHostname& irc_hostname, const std::string& resource);
  bool is_resource_in_server(const IrcHostname& irc_hostname, const std::string& resource) const;
  size_t number_of_channels_the_resource_is_in(const std::string& irc_hostname, const std::string& resource) const;

  /**