mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibCore: Remove unused UDPServer constructor parameter
This commit is contained in:
parent
036aa43a41
commit
fa8592b4a9
|
|
@ -21,8 +21,7 @@
|
|||
|
||||
namespace Core {
|
||||
|
||||
UDPServer::UDPServer(EventReceiver* parent)
|
||||
: EventReceiver(parent)
|
||||
UDPServer::UDPServer()
|
||||
{
|
||||
#ifdef SOCK_NONBLOCK
|
||||
m_fd = socket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public:
|
|||
Function<void()> on_ready_to_receive;
|
||||
|
||||
protected:
|
||||
explicit UDPServer(EventReceiver* parent = nullptr);
|
||||
UDPServer();
|
||||
|
||||
private:
|
||||
int m_fd { -1 };
|
||||
|
|
|
|||
|
|
@ -15,8 +15,7 @@
|
|||
|
||||
namespace Core {
|
||||
|
||||
UDPServer::UDPServer(EventReceiver* parent)
|
||||
: EventReceiver(parent)
|
||||
UDPServer::UDPServer()
|
||||
{
|
||||
m_fd = MUST(Core::System::socket(AF_INET, SOCK_DGRAM, 0));
|
||||
int option = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user