diff --git a/src/event/SocketMonitor.cxx b/src/event/SocketMonitor.cxx index e0adfb05a..0d8c326c3 100644 --- a/src/event/SocketMonitor.cxx +++ b/src/event/SocketMonitor.cxx @@ -63,15 +63,6 @@ SocketMonitor::Steal() noexcept return std::exchange(fd, SocketDescriptor::Undefined()); } -void -SocketMonitor::Abandon() noexcept -{ - assert(IsDefined()); - - loop.Abandon(std::exchange(fd, SocketDescriptor::Undefined()).Get(), - *this); -} - void SocketMonitor::Close() noexcept { diff --git a/src/event/SocketMonitor.hxx b/src/event/SocketMonitor.hxx index c07813c2a..e3922e155 100644 --- a/src/event/SocketMonitor.hxx +++ b/src/event/SocketMonitor.hxx @@ -91,11 +91,6 @@ public: */ SocketDescriptor Steal() noexcept; - /** - * Somebody has closed the socket. Unregister this object. - */ - void Abandon() noexcept; - void Close() noexcept; unsigned GetScheduledFlags() const noexcept {