[Spice-devel] [spice-server] channel: Remove unused red_channel_min_pipe_size

Christophe Fergeau cfergeau at redhat.com
Thu Sep 7 09:04:18 UTC 2017


This could have been removed as part of 6e6126e024.

Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
 server/red-channel.c | 13 -------------
 server/red-channel.h |  2 --
 2 files changed, 15 deletions(-)

diff --git a/server/red-channel.c b/server/red-channel.c
index 5d832c32a..97be2f2bd 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -616,19 +616,6 @@ uint32_t red_channel_max_pipe_size(RedChannel *channel)
     return pipe_size;
 }
 
-uint32_t red_channel_min_pipe_size(RedChannel *channel)
-{
-    RedChannelClient *rcc;
-    uint32_t pipe_size = ~0;
-
-    FOREACH_CLIENT(channel, rcc) {
-        uint32_t new_size;
-        new_size = red_channel_client_get_pipe_size(rcc);
-        pipe_size = MIN(pipe_size, new_size);
-    }
-    return pipe_size == ~0 ? 0 : pipe_size;
-}
-
 uint32_t red_channel_sum_pipes_size(RedChannel *channel)
 {
     RedChannelClient *rcc;
diff --git a/server/red-channel.h b/server/red-channel.h
index e8feea2c9..55cfa7e1d 100644
--- a/server/red-channel.h
+++ b/server/red-channel.h
@@ -203,8 +203,6 @@ void red_channel_connect(RedChannel *channel, RedClient *client,
 
 /* return the sum of all the rcc pipe size */
 uint32_t red_channel_max_pipe_size(RedChannel *channel);
-/* return the min size of all the rcc pipe */
-uint32_t red_channel_min_pipe_size(RedChannel *channel);
 /* return the max size of all the rcc pipe */
 uint32_t red_channel_sum_pipes_size(RedChannel *channel);
 
-- 
2.13.5



More information about the Spice-devel mailing list