Skip to content

Commit

Permalink
Remove the tracking of the last user handler clean.
Browse files Browse the repository at this point in the history
The information isn't used, and the method is never actually called.
  • Loading branch information
Pentarctagon authored and soliton- committed Aug 22, 2019
1 parent 25f1537 commit b1e9220
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
11 changes: 0 additions & 11 deletions src/server/server.cpp
Expand Up @@ -259,9 +259,7 @@ server::server(int port,
, join_lobby_response_("[join_lobby]\n[/join_lobby]\n", simple_wml::INIT_COMPRESSED)
, games_and_users_list_("[gamelist]\n[/gamelist]\n", simple_wml::INIT_STATIC)
, metrics_()
, last_ping_(std::time(nullptr))
, dump_stats_timer_(io_service_)
, last_uh_clean_(last_ping_)
, cmd_handlers_()
, timer_(io_service_)
, lan_server_timer_(io_service_)
Expand Down Expand Up @@ -576,15 +574,6 @@ void server::dump_stats(const boost::system::error_code& ec)
start_dump_stats();
}

void server::clean_user_handler(const std::time_t& now)
{
if(!user_handler_) {
return;
}

last_uh_clean_ = now;
}

void server::handle_new_client(socket_ptr socket)
{
async_send_doc(socket, version_query_response_, std::bind(&server::handle_version, this, _1));
Expand Down
4 changes: 0 additions & 4 deletions src/server/server.hpp
Expand Up @@ -170,14 +170,10 @@ class server : public server_base

metrics metrics_;

std::time_t last_ping_;
boost::asio::steady_timer dump_stats_timer_;
void start_dump_stats();
void dump_stats(const boost::system::error_code& ec);

std::time_t last_uh_clean_;
void clean_user_handler(const std::time_t& now);

/** Process commands from admins and users. */
std::string process_command(std::string cmd, std::string issuer_name);

Expand Down

0 comments on commit b1e9220

Please sign in to comment.