From 25b3dc8b098f0dd5160491e504d6a388d257f4cd Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 12 Jul 2013 12:41:45 +0200 Subject: [PATCH] Remove unnecessary parameter and comment. --- src/networkremote/incomingdataparser.cpp | 4 ++-- src/networkremote/incomingdataparser.h | 2 +- src/networkremote/remoteclient.cpp | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/networkremote/incomingdataparser.cpp b/src/networkremote/incomingdataparser.cpp index 13b39f253..5e65e6452 100644 --- a/src/networkremote/incomingdataparser.cpp +++ b/src/networkremote/incomingdataparser.cpp @@ -97,7 +97,7 @@ void IncomingDataParser::Parse(const pb::remote::Message& msg) { // Now check what's to do switch (msg.type()) { - case pb::remote::CONNECT: ClientConnect(client, msg); + case pb::remote::CONNECT: ClientConnect(msg); break; case pb::remote::DISCONNECT: close_connection_ = true; break; @@ -240,7 +240,7 @@ void IncomingDataParser::RemoveSongs(const pb::remote::Message& msg) { emit RemoveSongs(songs); } -void IncomingDataParser::ClientConnect(RemoteClient* client, const pb::remote::Message& msg) { +void IncomingDataParser::ClientConnect(const pb::remote::Message& msg) { // Always sned the Clementine infos emit SendClementineInfo(); diff --git a/src/networkremote/incomingdataparser.h b/src/networkremote/incomingdataparser.h index 6a8d69f28..3fe5ed962 100644 --- a/src/networkremote/incomingdataparser.h +++ b/src/networkremote/incomingdataparser.h @@ -56,7 +56,7 @@ private: void SetShuffleMode(const pb::remote::Shuffle& shuffle); void InsertUrls(const pb::remote::Message& msg); void RemoveSongs(const pb::remote::Message& msg); - void ClientConnect(RemoteClient* client, const pb::remote::Message& msg); + void ClientConnect(const pb::remote::Message& msg); void SendPlaylists(const pb::remote::Message& msg); void OpenPlaylist(const pb::remote::Message& msg); void ClosePlaylist(const pb::remote::Message& msg); diff --git a/src/networkremote/remoteclient.cpp b/src/networkremote/remoteclient.cpp index ad5ddd66e..81a88130e 100644 --- a/src/networkremote/remoteclient.cpp +++ b/src/networkremote/remoteclient.cpp @@ -35,8 +35,6 @@ RemoteClient::RemoteClient(Application* app, QTcpSocket* client) // Connect to the slot IncomingData when receiving data connect(client, SIGNAL(readyRead()), this, SLOT(IncomingData())); - //connect(client, SIGNAL(disconnected()), - // client, SLOT(deleteLater())); // Check if we use auth code QSettings s;