From 879eec6aa8e5abed7bddcf293ff9e584f8ae2c86 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Thu, 13 May 2021 02:49:37 -0700 Subject: Kernel: Remove dead TCPSocket::from_endpoints method --- Kernel/Net/TCPSocket.cpp | 6 ------ Kernel/Net/TCPSocket.h | 1 - 2 files changed, 7 deletions(-) (limited to 'Kernel/Net') diff --git a/Kernel/Net/TCPSocket.cpp b/Kernel/Net/TCPSocket.cpp index 353a59fbc1..9434d82139 100644 --- a/Kernel/Net/TCPSocket.cpp +++ b/Kernel/Net/TCPSocket.cpp @@ -84,12 +84,6 @@ RefPtr TCPSocket::from_tuple(const IPv4SocketTuple& tuple) return {}; } - -RefPtr TCPSocket::from_endpoints(const IPv4Address& local_address, u16 local_port, const IPv4Address& peer_address, u16 peer_port) -{ - return from_tuple(IPv4SocketTuple(local_address, local_port, peer_address, peer_port)); -} - RefPtr TCPSocket::create_client(const IPv4Address& new_local_address, u16 new_local_port, const IPv4Address& new_peer_address, u16 new_peer_port) { auto tuple = IPv4SocketTuple(new_local_address, new_local_port, new_peer_address, new_peer_port); diff --git a/Kernel/Net/TCPSocket.h b/Kernel/Net/TCPSocket.h index ac3489ef96..990cb46e8c 100644 --- a/Kernel/Net/TCPSocket.h +++ b/Kernel/Net/TCPSocket.h @@ -143,7 +143,6 @@ public: static Lockable>& sockets_by_tuple(); static RefPtr from_tuple(const IPv4SocketTuple& tuple); - static RefPtr from_endpoints(const IPv4Address& local_address, u16 local_port, const IPv4Address& peer_address, u16 peer_port); static Lockable>>& closing_sockets(); -- cgit v1.2.3