From 51fd783fee8636b0fa1a1288a679848714c96764 Mon Sep 17 00:00:00 2001
From: Sebastian Hahta <joseha@utu.fi>
Date: Wed, 4 Jan 2023 15:43:18 +0200
Subject: [PATCH] remove incorrect destructor

---
 src/socket/socket.cpp | 5 -----
 src/socketImpl.hpp    | 1 -
 2 files changed, 6 deletions(-)

diff --git a/src/socket/socket.cpp b/src/socket/socket.cpp
index 7ff4659..ffdf4c3 100644
--- a/src/socket/socket.cpp
+++ b/src/socket/socket.cpp
@@ -14,11 +14,6 @@
 #include "socket_linux.cpp"
 #endif
 
-Socket::~Socket() {
-    LOG_IF(ERROR, !(is_valid() || is_closed())) << "socket wrapper destroyed before socket is closed";
-    DCHECK(is_valid() || is_closed());
-}
-
 bool Socket::is_open() { return status_ == STATUS::OPEN; }
 
 bool Socket::is_closed() { return status_ == STATUS::CLOSED; }
diff --git a/src/socketImpl.hpp b/src/socketImpl.hpp
index afd0f8d..6fbddde 100644
--- a/src/socketImpl.hpp
+++ b/src/socketImpl.hpp
@@ -30,7 +30,6 @@ class Socket {
 
  public:
     Socket(int domain, int type, int protocol);
-    ~Socket();
 
     bool is_valid();
     bool is_open();
-- 
GitLab