From ba6332b8ec1b21eabc38a4f7f1dcdb27297cd155 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 18 Apr 2021 19:54:39 +0100 Subject: Rip out the SwapInternals method. This never really worked correctly and will now be replaced with something better. --- src/inspsocket.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 0f12aebbe..adbd5e7be 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -545,17 +545,3 @@ size_t StreamSocket::GetSendQSize() const } return ret; } - -void StreamSocket::SwapInternals(StreamSocket& other) -{ - if (type != other.type) - return; - - EventHandler::SwapInternals(other); - std::swap(closeonempty, other.closeonempty); - std::swap(closing, other.closing); - std::swap(error, other.error); - std::swap(iohook, other.iohook); - std::swap(recvq, other.recvq); - std::swap(sendq, other.sendq); -} -- cgit v1.3.1-10-gc9f91