[Spice-devel] [spice-server 3/3] Remove unused red_channel_client_new()
Christophe Fergeau
cfergeau at redhat.com
Thu Mar 30 16:40:15 UTC 2017
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
server/red-channel-client.c | 19 -------------------
server/red-channel-client.h | 5 -----
server/red-channel.c | 2 +-
3 files changed, 1 insertion(+), 25 deletions(-)
diff --git a/server/red-channel-client.c b/server/red-channel-client.c
index a86833d..447f29b 100644
--- a/server/red-channel-client.c
+++ b/server/red-channel-client.c
@@ -973,25 +973,6 @@ cleanup:
return local_error == NULL;
}
-RedChannelClient *red_channel_client_create(RedChannel *channel, RedClient *client,
- RedsStream *stream,
- int monitor_latency,
- RedChannelCapabilities *caps)
-{
- RedChannelClient *rcc;
-
- rcc = g_initable_new(RED_TYPE_CHANNEL_CLIENT,
- NULL, NULL,
- "channel", channel,
- "client", client,
- "stream", stream,
- "monitor-latency", monitor_latency,
- "caps", caps,
- NULL);
-
- return rcc;
-}
-
static void red_channel_client_seamless_migration_done(RedChannelClient *rcc)
{
rcc->priv->wait_migrate_data = FALSE;
diff --git a/server/red-channel-client.h b/server/red-channel-client.h
index ebe06d8..95e2d13 100644
--- a/server/red-channel-client.h
+++ b/server/red-channel-client.h
@@ -47,11 +47,6 @@ typedef struct RedChannelClientPrivate RedChannelClientPrivate;
GType red_channel_client_get_type(void) G_GNUC_CONST;
-RedChannelClient *red_channel_client_create(RedChannel *channel,
- RedClient *client, RedsStream *stream,
- int monitor_latency,
- RedChannelCapabilities *caps);
-
gboolean red_channel_client_is_connected(RedChannelClient *rcc);
void red_channel_client_default_migrate(RedChannelClient *rcc);
bool red_channel_client_is_waiting_for_migrate_data(RedChannelClient *rcc);
diff --git a/server/red-channel.c b/server/red-channel.c
index 1d8cce8..91c0dee 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -37,7 +37,7 @@
* red_channel_create.* and red_channel_destroy. The RedChannel resources
* are deallocated only after red_channel_destroy is called and no RedChannelClient
* refers to the channel.
- * RedChannelClient is created and destroyed by the calls to red_channel_client_create
+ * RedChannelClient is created and destroyed by the calls to xxx_channel_client_new
* and red_channel_client_destroy. RedChannelClient resources are deallocated only when
* its refs == 0. The reference count of RedChannelClient can be increased by routines
* that include calls that might destroy the red_channel_client. For example,
--
2.9.3
More information about the Spice-devel
mailing list