event/SocketEvent: remove assert(), reduce header dependencies

This commit is contained in:
Max Kellermann 2020-12-04 09:55:36 +01:00
parent cea8db7eaa
commit 00fafa16c7
1 changed files with 1 additions and 4 deletions

View File

@ -25,7 +25,6 @@
#include "util/BindMethod.hxx"
#include "util/IntrusiveList.hxx"
#include <cassert>
#include <cstddef>
#include <type_traits>
@ -100,8 +99,6 @@ public:
}
SocketDescriptor GetSocket() const noexcept {
assert(IsDefined());
return fd;
}
@ -110,7 +107,7 @@ public:
return std::exchange(fd, SocketDescriptor::Undefined());
}
void Open(SocketDescriptor _fd) noexcept;
void Open(SocketDescriptor fd) noexcept;
/**
* Close the socket (and cancel all scheduled events).