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:
parent
a8d72ebbaa
commit
de08752853
2 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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 &()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue