Remove the tracking of the last user handler clean.
The information isn't used, and the method is never actually called.
This commit is contained in:
parent
25f1537003
commit
b1e92206f5
2 changed files with 0 additions and 15 deletions
|
@ -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_)
|
||||
|
@ -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));
|
||||
|
|
|
@ -170,14 +170,10 @@ private:
|
|||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue