summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-08-26 18:08:14 +0200
committerlouiz’ <louiz@louiz.org>2018-08-26 18:08:14 +0200
commitb9f6fbd8405c1d16ca637fb32850d44173528e46 (patch)
tree4adb71cdbe7ed8cf4390a124719ff9986b55a88b
parent21f69cf068ad7c848ea41a18eb0575a3b2b71cd5 (diff)
downloadbiboumi-b9f6fbd8405c1d16ca637fb32850d44173528e46.tar.gz
biboumi-b9f6fbd8405c1d16ca637fb32850d44173528e46.tar.bz2
biboumi-b9f6fbd8405c1d16ca637fb32850d44173528e46.tar.xz
biboumi-b9f6fbd8405c1d16ca637fb32850d44173528e46.zip
Remove an unused function (and a useless debug log)
-rw-r--r--src/bridge/bridge.cpp10
-rw-r--r--src/bridge/bridge.hpp1
2 files changed, 0 insertions, 11 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 5ba8a2d..cc2ef66 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -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);
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index b2f7734..5c547ff 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -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;
/**