mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +00:00
LibCore: Remove unused UDPServer constructor parameter
This commit is contained in:
parent
036aa43a41
commit
fa8592b4a9
Notes:
github-actions[bot]
2025-08-11 14:57:55 +00:00
Author: https://github.com/awesomekling
Commit: fa8592b4a9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5817
Reviewed-by: https://github.com/gmta ✅
3 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||||
|
|
|
@ -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 };
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue