chore: remove unused Client::sendEvent data argument

based on: 307fdfe1b3
This commit is contained in:
sithlord48
2025-11-12 19:29:22 -05:00
committed by Chris Rizzitello
parent 4728525ece
commit ad33114e0c
2 changed files with 7 additions and 7 deletions

View File

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

View File

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