LibCore: Remove unused UDPServer constructor parameter

This commit is contained in:
Andreas Kling 2025-08-10 16:27:26 +02:00 committed by Andreas Kling
commit fa8592b4a9
Notes: github-actions[bot] 2025-08-11 14:57:55 +00:00
3 changed files with 3 additions and 5 deletions

View file

@ -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);

View file

@ -41,7 +41,7 @@ public:
Function<void()> on_ready_to_receive;
protected:
explicit UDPServer(EventReceiver* parent = nullptr);
UDPServer();
private:
int m_fd { -1 };

View file

@ -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;