diff --git a/server/red-channel.c b/server/red-channel.c index b8f4f54e..b4a92340 100644 --- a/server/red-channel.c +++ b/server/red-channel.c @@ -493,16 +493,6 @@ void red_channel_connect(RedChannel *channel, RedClient *client, channel->priv->client_cbs.connect(channel, client, stream, migration, caps); } -void red_channel_apply_clients(RedChannel *channel, channel_client_callback cb) -{ - g_list_foreach(channel->priv->clients, (GFunc)cb, NULL); -} - -void red_channel_apply_clients_data(RedChannel *channel, channel_client_callback_data cb, void *data) -{ - g_list_foreach(channel->priv->clients, (GFunc)cb, data); -} - GList *red_channel_get_clients(RedChannel *channel) { return channel->priv->clients; diff --git a/server/red-channel.h b/server/red-channel.h index a55c830f..e0fe94fe 100644 --- a/server/red-channel.h +++ b/server/red-channel.h @@ -203,12 +203,6 @@ uint32_t red_channel_max_pipe_size(RedChannel *channel); /* return the max size of all the rcc pipe */ uint32_t red_channel_sum_pipes_size(RedChannel *channel); -/* apply given function to all connected clients */ -typedef void (*channel_client_callback)(RedChannelClient *rcc); -typedef void (*channel_client_callback_data)(RedChannelClient *rcc, void *data); -void red_channel_apply_clients(RedChannel *channel, channel_client_callback v); -void red_channel_apply_clients_data(RedChannel *channel, channel_client_callback_data v, - void *data); GList *red_channel_get_clients(RedChannel *channel); guint red_channel_get_n_clients(RedChannel *channel); struct RedsState* red_channel_get_server(RedChannel *channel);