Commit 00fafa16 authored by Max Kellermann's avatar Max Kellermann

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

parent cea8db7e
......@@ -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).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment