[Spice-commits] server/red-channel.c server/red-channel.h server/spicevmc.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Thu Oct 12 15:40:06 UTC 2017
server/red-channel.c | 8 --------
server/red-channel.h | 3 ---
server/spicevmc.c | 2 --
3 files changed, 13 deletions(-)
New commits:
commit 7a3bfedfbed7029096d58d36b56f08997c610b3a
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Fri Oct 6 08:57:42 2017 +0100
red-channel: Remove red_channel_init_outgoing_messages_window
This function does not make much sense anymore.
Is called by RedVmcChannel which doesn't use RedChannelClient ACKs
so the variable changed are not used.
Moreover, at red_vmc_channel_constructed() time, there will be no
clients yet, so red_channel_init_outgoing_messages() will be a no-op.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/server/red-channel.c b/server/red-channel.c
index 9736c54b..a943023d 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -421,14 +421,6 @@ void red_channel_push(RedChannel *channel)
g_list_foreach(channel->priv->clients, (GFunc)red_channel_client_push, NULL);
}
-// TODO: this function doesn't make sense because the window should be client (WAN/LAN)
-// specific
-void red_channel_init_outgoing_messages_window(RedChannel *channel)
-{
- g_list_foreach(channel->priv->clients,
- (GFunc)red_channel_client_init_outgoing_messages_window, NULL);
-}
-
void red_channel_pipes_add(RedChannel *channel, RedPipeItem *item)
{
RedChannelClient *rcc;
diff --git a/server/red-channel.h b/server/red-channel.h
index e0fe94fe..281ed0c9 100644
--- a/server/red-channel.h
+++ b/server/red-channel.h
@@ -157,9 +157,6 @@ void red_channel_destroy(RedChannel *channel);
/* return true if all the channel clients support the cap */
bool red_channel_test_remote_cap(RedChannel *channel, uint32_t cap);
-/* should be called when a new channel is ready to send messages */
-void red_channel_init_outgoing_messages_window(RedChannel *channel);
-
// helper to push a new item to all channels
typedef RedPipeItem *(*new_pipe_item_t)(RedChannelClient *rcc, void *data, int num);
int red_channel_pipes_new_add(RedChannel *channel, new_pipe_item_t creator, void *data);
diff --git a/server/spicevmc.c b/server/spicevmc.c
index 45036c47..9daf92b5 100644
--- a/server/spicevmc.c
+++ b/server/spicevmc.c
@@ -246,8 +246,6 @@ red_vmc_channel_constructed(GObject *object)
red_channel_set_cap(RED_CHANNEL(self), SPICE_SPICEVMC_CAP_DATA_COMPRESS_LZ4);
#endif
- red_channel_init_outgoing_messages_window(RED_CHANNEL(self));
-
reds_register_channel(reds, RED_CHANNEL(self));
}
More information about the Spice-commits
mailing list