From 626507943c0e7bd824c9e97a1de2659e50cb2865 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 6 Jan 2022 22:50:31 +0100 Subject: [PATCH] Kernel: Remove redundant socket_by_tuple removal in ~TCPSocket() --- Kernel/Net/TCPSocket.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Kernel/Net/TCPSocket.cpp b/Kernel/Net/TCPSocket.cpp index cf4c6f71ff..52a915f4ae 100644 --- a/Kernel/Net/TCPSocket.cpp +++ b/Kernel/Net/TCPSocket.cpp @@ -160,10 +160,6 @@ TCPSocket::TCPSocket(int protocol, NonnullOwnPtr receive_buffer, N TCPSocket::~TCPSocket() { - sockets_by_tuple().with_exclusive([&](auto& table) { - table.remove(tuple()); - }); - dequeue_for_retransmit(); dbgln_if(TCP_SOCKET_DEBUG, "~TCPSocket in state {}", to_string(state()));