From ad33114e0c01f1217da1097742a12ee6f0595558 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 12 Nov 2025 19:29:22 -0500 Subject: [PATCH] chore: remove unused Client::sendEvent data argument based on: https://github.com/input-leap/input-leap/pull/1554/commits/307fdfe1b3ba7aefa9f01899c33a7df90f670f76 --- src/lib/client/Client.cpp | 12 ++++++------ src/lib/client/Client.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/client/Client.cpp b/src/lib/client/Client.cpp index e03c4f2eb..a385381cb 100644 --- a/src/lib/client/Client.cpp +++ b/src/lib/client/Client.cpp @@ -137,7 +137,7 @@ void Client::disconnect(const char *msg) if (msg) { sendConnectionFailedEvent(msg); } else { - sendEvent(EventTypes::ClientDisconnected, nullptr); + sendEvent(EventTypes::ClientDisconnected); } } @@ -157,7 +157,7 @@ void Client::handshakeComplete() { m_ready = true; m_screen->enable(); - sendEvent(EventTypes::ClientConnected, nullptr); + sendEvent(EventTypes::ClientConnected); } bool Client::isConnected() const @@ -362,9 +362,9 @@ void Client::sendClipboard(ClipboardID id) } } -void Client::sendEvent(EventTypes type, void *data) +void Client::sendEvent(EventTypes type) { - m_events->addEvent(Event(type, getEventTarget(), data)); + m_events->addEvent(Event(type, getEventTarget())); } void Client::sendConnectionFailedEvent(const char *msg) @@ -536,7 +536,7 @@ void Client::handleOutputError() cleanupScreen(); cleanupConnection(); LOG_WARN("error sending to server"); - sendEvent(EventTypes::ClientDisconnected, nullptr); + sendEvent(EventTypes::ClientDisconnected); } void Client::handleDisconnected() @@ -545,7 +545,7 @@ void Client::handleDisconnected() cleanupScreen(); cleanupConnection(); LOG_DEBUG1("disconnected"); - sendEvent(EventTypes::ClientDisconnected, nullptr); + sendEvent(EventTypes::ClientDisconnected); } void Client::handleShapeChanged() diff --git a/src/lib/client/Client.h b/src/lib/client/Client.h index dd424dd86..7681e899b 100644 --- a/src/lib/client/Client.h +++ b/src/lib/client/Client.h @@ -156,7 +156,7 @@ public: private: void sendClipboard(ClipboardID); - void sendEvent(deskflow::EventTypes, void *); + void sendEvent(deskflow::EventTypes); void sendConnectionFailedEvent(const char *msg); void setupConnecting(); void setupConnection();