From de08752853e2c1ce55ea53e7217373c9707fa053 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 18 Feb 2018 20:33:36 -0800 Subject: [PATCH] ircd::net: Remove unused/erroneous has_timeout(). --- include/ircd/net/socket.h | 1 - ircd/net.cc | 7 ------- 2 files changed, 8 deletions(-) diff --git a/include/ircd/net/socket.h b/include/ircd/net/socket.h index 03a2a1e14..717a3d11f 100644 --- a/include/ircd/net/socket.h +++ b/include/ircd/net/socket.h @@ -69,7 +69,6 @@ struct ircd::net::socket endpoint local() const; // getsockname(); throws if not conn/bound // Timer for this socket - bool has_timeout() const noexcept; void set_timeout(const milliseconds &, ec_handler); void set_timeout(const milliseconds &); milliseconds cancel_timeout() noexcept; diff --git a/ircd/net.cc b/ircd/net.cc index dda71e94f..cfa46aced 100644 --- a/ircd/net.cc +++ b/ircd/net.cc @@ -2037,13 +2037,6 @@ ircd::net::socket::set_timeout(const milliseconds &t, timer.async_wait(std::move(handler)); } -bool -ircd::net::socket::has_timeout() -const noexcept -{ - return !timedout && timer.expires_from_now() != milliseconds{0}; -} - ircd::net::socket::operator SSL &() {