summaryrefslogtreecommitdiffstats
path: root/src/OSSupport
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-07-20 01:46:04 +0200
committerMattes D <github@xoft.cz>2014-07-20 01:46:04 +0200
commit0e608b284480f9f4fe175f901080308136e9abc3 (patch)
treed4a1de7b55cfca5d80f9b0c8fce0e34192d0d9b3 /src/OSSupport
parentMonsters: Made IsUndead overridable by the respective mob classes (diff)
parentmain.cpp: field style fixes (diff)
downloadcuberite-0e608b284480f9f4fe175f901080308136e9abc3.tar
cuberite-0e608b284480f9f4fe175f901080308136e9abc3.tar.gz
cuberite-0e608b284480f9f4fe175f901080308136e9abc3.tar.bz2
cuberite-0e608b284480f9f4fe175f901080308136e9abc3.tar.lz
cuberite-0e608b284480f9f4fe175f901080308136e9abc3.tar.xz
cuberite-0e608b284480f9f4fe175f901080308136e9abc3.tar.zst
cuberite-0e608b284480f9f4fe175f901080308136e9abc3.zip
Diffstat (limited to 'src/OSSupport')
-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);