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 &() {