1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 14:45:07 +00:00

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.
This commit is contained in:
Andreas Kling 2019-08-04 20:39:59 +02:00
parent f8ffe2019c
commit c06993b7cf
2 changed files with 0 additions and 6 deletions

View file

@ -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