Skip to content

Commit

Permalink
LibCore: remove redundant UDPSocket constructor
Browse files Browse the repository at this point in the history
The comment claims it is for use from UDPServer::accept
Which is not a real function.
  • Loading branch information
tryfinally authored and awesomekling committed Aug 10, 2020
1 parent eb77568 commit de5e542
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions Libraries/LibCore/UDPSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 0 additions & 1 deletion Libraries/LibCore/UDPSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class UDPSocket final : public Socket {
virtual ~UDPSocket() override;

private:
UDPSocket(int fd, Object* parent = nullptr);
explicit UDPSocket(Object* parent = nullptr);
};

Expand Down

0 comments on commit de5e542

Please sign in to comment.