mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +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:
parent
eb77568d8c
commit
de5e542930
Notes:
sideshowbarker
2024-07-19 04:03:55 +09:00
Author: https://github.com/tryfinally
Commit: de5e542930
Pull-request: https://github.com/SerenityOS/serenity/pull/3075
2 changed files with 0 additions and 11 deletions
|
@ -34,16 +34,6 @@
|
||||||
|
|
||||||
namespace Core {
|
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)
|
UDPSocket::UDPSocket(Object* parent)
|
||||||
: Socket(Socket::Type::UDP, parent)
|
: Socket(Socket::Type::UDP, parent)
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,7 +36,6 @@ public:
|
||||||
virtual ~UDPSocket() override;
|
virtual ~UDPSocket() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
UDPSocket(int fd, Object* parent = nullptr);
|
|
||||||
explicit UDPSocket(Object* parent = nullptr);
|
explicit UDPSocket(Object* parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue