[Spice-devel] [PATCH spice-server v2 11/11] main channel: Remove unused main_channel_client_get_link_id

Pavel Grunt pgrunt at redhat.com
Mon Nov 23 01:43:51 PST 2015


It was introduced in 9cece23ba3e49e6eec9e380daa95d6ee0133c91c
but never used.

Signed-off-by: Pavel Grunt <pgrunt at redhat.com>
---
 server/main_channel.c | 5 -----
 server/main_channel.h | 1 -
 2 files changed, 6 deletions(-)

diff --git a/server/main_channel.c b/server/main_channel.c
index 252d799..d6b121a 100644
--- a/server/main_channel.c
+++ b/server/main_channel.c
@@ -1085,11 +1085,6 @@ static void ping_timer_cb(void *opaque)
 }
 #endif /* RED_STATISTICS */
 
-uint32_t main_channel_client_get_link_id(MainChannelClient *mcc)
-{
-    return mcc->connection_id;
-}
-
 static MainChannelClient *main_channel_client_create(MainChannel *main_chan, RedClient *client,
                                                      RedsStream *stream, uint32_t connection_id,
                                                      int num_common_caps, uint32_t *common_caps,
diff --git a/server/main_channel.h b/server/main_channel.h
index e7027bc..9bd20f1 100644
--- a/server/main_channel.h
+++ b/server/main_channel.h
@@ -71,7 +71,6 @@ void main_channel_client_push_notify(MainChannelClient *mcc, const char *msg);
 void main_channel_push_multi_media_time(MainChannel *main_chan, int time);
 int main_channel_getsockname(MainChannel *main_chan, struct sockaddr *sa, socklen_t *salen);
 int main_channel_getpeername(MainChannel *main_chan, struct sockaddr *sa, socklen_t *salen);
-uint32_t main_channel_client_get_link_id(MainChannelClient *mcc);
 
 /*
  * return TRUE if network test had been completed successfully.
-- 
2.5.0



More information about the Spice-devel mailing list