0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 22:41:12 +01:00

ircd::net: Remove unused/erroneous has_timeout().

This commit is contained in:
Jason Volk 2018-02-18 20:33:36 -08:00
parent a8d72ebbaa
commit de08752853
2 changed files with 0 additions and 8 deletions

View file

@ -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;

View file

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