diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-04 20:39:59 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-04 20:39:59 +0200 |
commit | c06993b7cfa1ba594f6680268ff9a85231355c20 (patch) | |
tree | 7392ffc64aaae3bc6299a4c54c7aea3fd22bb499 | |
parent | f8ffe2019cf8d4db3cb492ff8303ff8dfab29f7e (diff) | |
download | serenity-c06993b7cfa1ba594f6680268ff9a85231355c20.zip |
Kernel: Remove more unused members of IPv4Socket.
I thought I had included these in the previous commit, but it turns out
I hadn't, duh.
-rw-r--r-- | Kernel/Net/IPv4Socket.cpp | 3 | ||||
-rw-r--r-- | Kernel/Net/IPv4Socket.h | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/Kernel/Net/IPv4Socket.cpp b/Kernel/Net/IPv4Socket.cpp index 83faedd330..40e92f88a5 100644 --- a/Kernel/Net/IPv4Socket.cpp +++ b/Kernel/Net/IPv4Socket.cpp @@ -91,7 +91,6 @@ KResult IPv4Socket::bind(const sockaddr* address, socklen_t address_size) KResult IPv4Socket::connect(FileDescription& description, const sockaddr* address, socklen_t address_size, ShouldBlock should_block) { - ASSERT(!m_bound); if (address_size != sizeof(sockaddr_in)) return KResult(-EINVAL); if (address->sa_family != AF_INET) @@ -106,12 +105,10 @@ KResult IPv4Socket::connect(FileDescription& description, const sockaddr* addres void IPv4Socket::attach(FileDescription&) { - ++m_attached_fds; } void IPv4Socket::detach(FileDescription&) { - --m_attached_fds; } bool IPv4Socket::can_read(FileDescription& description) const diff --git a/Kernel/Net/IPv4Socket.h b/Kernel/Net/IPv4Socket.h index be2672edeb..afb73b56c7 100644 --- a/Kernel/Net/IPv4Socket.h +++ b/Kernel/Net/IPv4Socket.h @@ -59,9 +59,6 @@ protected: private: virtual bool is_ipv4() const override { return true; } - bool m_bound { false }; - int m_attached_fds { 0 }; - IPv4Address m_local_address; IPv4Address m_peer_address; |