diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/sock.cpp | 2 | ||||
-rw-r--r-- | src/util/sock.h | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/util/sock.cpp b/src/util/sock.cpp index e08edd42b7..d16dc56aa3 100644 --- a/src/util/sock.cpp +++ b/src/util/sock.cpp @@ -24,8 +24,6 @@ static inline bool IOErrorIsPermanent(int err) return err != WSAEAGAIN && err != WSAEINTR && err != WSAEWOULDBLOCK && err != WSAEINPROGRESS; } -Sock::Sock() : m_socket(INVALID_SOCKET) {} - Sock::Sock(SOCKET s) : m_socket(s) {} Sock::Sock(Sock&& other) diff --git a/src/util/sock.h b/src/util/sock.h index a3d8dfe3b6..d78e01929b 100644 --- a/src/util/sock.h +++ b/src/util/sock.h @@ -26,10 +26,7 @@ static constexpr auto MAX_WAIT_FOR_IO = 1s; class Sock { public: - /** - * Default constructor, creates an empty object that does nothing when destroyed. - */ - Sock(); + Sock() = delete; /** * Take ownership of an existent socket. |