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 { namespace Core {
UDPServer::UDPServer(EventReceiver* parent) UDPServer::UDPServer()
: EventReceiver(parent)
{ {
#ifdef SOCK_NONBLOCK #ifdef SOCK_NONBLOCK
m_fd = socket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0); 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; Function<void()> on_ready_to_receive;
protected: protected:
explicit UDPServer(EventReceiver* parent = nullptr); UDPServer();
private: private:
int m_fd { -1 }; int m_fd { -1 };

View file

@ -15,8 +15,7 @@
namespace Core { namespace Core {
UDPServer::UDPServer(EventReceiver* parent) UDPServer::UDPServer()
: EventReceiver(parent)
{ {
m_fd = MUST(Core::System::socket(AF_INET, SOCK_DGRAM, 0)); m_fd = MUST(Core::System::socket(AF_INET, SOCK_DGRAM, 0));
int option = 1; int option = 1;