From 43dccbd45d4139ab27b6899a56c2a7f99e0da547 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Nov 2017 20:52:37 +0100 Subject: [PATCH] event/SocketMonitor: remove unused method Abandon() --- src/event/SocketMonitor.cxx | 9 --------- src/event/SocketMonitor.hxx | 5 ----- 2 files changed, 14 deletions(-) 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 {