1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:58:12 +00:00

LibCore: remove redundant UDPSocket constructor

The comment claims it is for use from UDPServer::accept
Which is not a real function.
This commit is contained in:
Muhammad Zahalqa 2020-08-10 20:04:12 +03:00 committed by Andreas Kling
parent eb77568d8c
commit de5e542930
2 changed files with 0 additions and 11 deletions

View file

@ -34,16 +34,6 @@
namespace Core {
UDPSocket::UDPSocket(int fd, Object* parent)
: Socket(Socket::Type::UDP, parent)
{
// NOTE: This constructor is used by UDPServer::accept(), so the socket is already connected.
m_connected = true;
set_fd(fd);
set_mode(IODevice::ReadWrite);
set_error(0);
}
UDPSocket::UDPSocket(Object* parent)
: Socket(Socket::Type::UDP, parent)
{