diff --git a/Libraries/LibCore/UDPSocket.cpp b/Libraries/LibCore/UDPSocket.cpp index 943419667a..c319ac3dc1 100644 --- a/Libraries/LibCore/UDPSocket.cpp +++ b/Libraries/LibCore/UDPSocket.cpp @@ -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) { diff --git a/Libraries/LibCore/UDPSocket.h b/Libraries/LibCore/UDPSocket.h index 35c0d4ee75..3bb65d9831 100644 --- a/Libraries/LibCore/UDPSocket.h +++ b/Libraries/LibCore/UDPSocket.h @@ -36,7 +36,6 @@ public: virtual ~UDPSocket() override; private: - UDPSocket(int fd, Object* parent = nullptr); explicit UDPSocket(Object* parent = nullptr); };