summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-07-19 23:50:31 +0200
committerarchshift <admin@archshift.com>2014-07-19 23:50:31 +0200
commit1831c2e652a3cbcfb13a72cd1334d0959cb607a3 (patch)
tree72e5cfe54d3a595585ed897b77acc168fcda617c
parentmain.cpp: Fixed warnings with g_TERMINATE_EVENT_RAISED and g_SERVER_TERMINATED (diff)
downloadcuberite-1831c2e652a3cbcfb13a72cd1334d0959cb607a3.tar
cuberite-1831c2e652a3cbcfb13a72cd1334d0959cb607a3.tar.gz
cuberite-1831c2e652a3cbcfb13a72cd1334d0959cb607a3.tar.bz2
cuberite-1831c2e652a3cbcfb13a72cd1334d0959cb607a3.tar.lz
cuberite-1831c2e652a3cbcfb13a72cd1334d0959cb607a3.tar.xz
cuberite-1831c2e652a3cbcfb13a72cd1334d0959cb607a3.tar.zst
cuberite-1831c2e652a3cbcfb13a72cd1334d0959cb607a3.zip
Diffstat (limited to '')
-rw-r--r--src/OSSupport/Socket.cpp9
-rw-r--r--src/OSSupport/Socket.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/src/OSSupport/Socket.cpp b/src/OSSupport/Socket.cpp
index 47d9f331d..c07d31c8b 100644
--- a/src/OSSupport/Socket.cpp
+++ b/src/OSSupport/Socket.cpp
@@ -25,15 +25,6 @@ cSocket::cSocket(xSocket a_Socket)
-cSocket::~cSocket()
-{
- // Do NOT close the socket; this class is an API wrapper, not a RAII!
-}
-
-
-
-
-
cSocket::operator cSocket::xSocket() const
{
return m_Socket;
diff --git a/src/OSSupport/Socket.h b/src/OSSupport/Socket.h
index 35ecadfa0..e4ec895cb 100644
--- a/src/OSSupport/Socket.h
+++ b/src/OSSupport/Socket.h
@@ -41,7 +41,6 @@ public:
cSocket(void) : m_Socket(INVALID_SOCKET) {}
cSocket(xSocket a_Socket);
- ~cSocket();
bool IsValid(void) const { return IsValidSocket(m_Socket); }
void CloseSocket(void);