mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
Remove unused red_channel_get_first_socket
This function assume there is only one client. Was used only by some obsolete functions. Avoid to use such function in the future. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
97eee5a352
commit
ab77c22ec5
@ -611,20 +611,6 @@ int red_channel_any_blocked(RedChannel *channel)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int red_channel_get_first_socket(RedChannel *channel)
|
||||
{
|
||||
RedChannelClient *rcc;
|
||||
RedsStream *stream;
|
||||
|
||||
if (!channel || !channel->priv->clients) {
|
||||
return -1;
|
||||
}
|
||||
rcc = g_list_nth_data(channel->priv->clients, 0);
|
||||
stream = red_channel_client_get_stream(rcc);
|
||||
|
||||
return stream->socket;
|
||||
}
|
||||
|
||||
int red_channel_no_item_being_sent(RedChannel *channel)
|
||||
{
|
||||
GListIter iter;
|
||||
|
||||
@ -262,8 +262,6 @@ void red_channel_pipes_add_type(RedChannel *channel, int pipe_item_type);
|
||||
|
||||
void red_channel_pipes_add_empty_msg(RedChannel *channel, int msg_type);
|
||||
|
||||
int red_channel_get_first_socket(RedChannel *channel);
|
||||
|
||||
/* return TRUE if all of the connected clients to this channel are blocked */
|
||||
int red_channel_all_blocked(RedChannel *channel);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user