diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-05-13 02:49:37 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-14 11:32:50 +0200 |
commit | 879eec6aa8e5abed7bddcf293ff9e584f8ae2c86 (patch) | |
tree | a820efd941a73d2e5248fe31b263885fb2cf12e9 | |
parent | 6387f65f87400e5fb03bcbe86ecd0f54ba794aa0 (diff) | |
download | serenity-879eec6aa8e5abed7bddcf293ff9e584f8ae2c86.zip |
Kernel: Remove dead TCPSocket::from_endpoints method
-rw-r--r-- | Kernel/Net/TCPSocket.cpp | 6 | ||||
-rw-r--r-- | Kernel/Net/TCPSocket.h | 1 |
2 files changed, 0 insertions, 7 deletions
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> TCPSocket::from_tuple(const IPv4SocketTuple& tuple) return {}; } - -RefPtr<TCPSocket> 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> 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<HashMap<IPv4SocketTuple, TCPSocket*>>& sockets_by_tuple(); static RefPtr<TCPSocket> from_tuple(const IPv4SocketTuple& tuple); - static RefPtr<TCPSocket> from_endpoints(const IPv4Address& local_address, u16 local_port, const IPv4Address& peer_address, u16 peer_port); static Lockable<HashMap<IPv4SocketTuple, RefPtr<TCPSocket>>>& closing_sockets(); |