chore: remove unused Client::sendEvent data argument
based on: 307fdfe1b3
This commit is contained in:
parent
4728525ece
commit
ad33114e0c
2 changed files with 7 additions and 7 deletions
|
|
@ -137,7 +137,7 @@ void Client::disconnect(const char *msg)
|
||||||
if (msg) {
|
if (msg) {
|
||||||
sendConnectionFailedEvent(msg);
|
sendConnectionFailedEvent(msg);
|
||||||
} else {
|
} else {
|
||||||
sendEvent(EventTypes::ClientDisconnected, nullptr);
|
sendEvent(EventTypes::ClientDisconnected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -157,7 +157,7 @@ void Client::handshakeComplete()
|
||||||
{
|
{
|
||||||
m_ready = true;
|
m_ready = true;
|
||||||
m_screen->enable();
|
m_screen->enable();
|
||||||
sendEvent(EventTypes::ClientConnected, nullptr);
|
sendEvent(EventTypes::ClientConnected);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Client::isConnected() const
|
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)
|
void Client::sendConnectionFailedEvent(const char *msg)
|
||||||
|
|
@ -536,7 +536,7 @@ void Client::handleOutputError()
|
||||||
cleanupScreen();
|
cleanupScreen();
|
||||||
cleanupConnection();
|
cleanupConnection();
|
||||||
LOG_WARN("error sending to server");
|
LOG_WARN("error sending to server");
|
||||||
sendEvent(EventTypes::ClientDisconnected, nullptr);
|
sendEvent(EventTypes::ClientDisconnected);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::handleDisconnected()
|
void Client::handleDisconnected()
|
||||||
|
|
@ -545,7 +545,7 @@ void Client::handleDisconnected()
|
||||||
cleanupScreen();
|
cleanupScreen();
|
||||||
cleanupConnection();
|
cleanupConnection();
|
||||||
LOG_DEBUG1("disconnected");
|
LOG_DEBUG1("disconnected");
|
||||||
sendEvent(EventTypes::ClientDisconnected, nullptr);
|
sendEvent(EventTypes::ClientDisconnected);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::handleShapeChanged()
|
void Client::handleShapeChanged()
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void sendClipboard(ClipboardID);
|
void sendClipboard(ClipboardID);
|
||||||
void sendEvent(deskflow::EventTypes, void *);
|
void sendEvent(deskflow::EventTypes);
|
||||||
void sendConnectionFailedEvent(const char *msg);
|
void sendConnectionFailedEvent(const char *msg);
|
||||||
void setupConnecting();
|
void setupConnecting();
|
||||||
void setupConnection();
|
void setupConnection();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue