Re: [spice-server] channel: Remove unused red_channel_min_pipe_size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> This could have been removed as part of 6e6126e024.
> 

Symmetric with max but I don't see the purpose, easy to
add again if needed.

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

Frediano

> Signed-off-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>
> ---
>  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
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]