[Spice-devel] [PATCH spice-server v8 12/12] fixup! Convert RedChannel hierarchy to GObject

Frediano Ziglio fziglio at redhat.com
Mon Oct 24 08:40:55 UTC 2016


Removed unused functions.
All these function where introduced by the patch without
being used.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/red-channel.c | 24 ------------------------
 server/red-channel.h |  5 -----
 2 files changed, 29 deletions(-)

diff --git a/server/red-channel.c b/server/red-channel.c
index 36ce44f..3b14fbf 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -1018,30 +1018,6 @@ void red_channel_send_item(RedChannel *self, RedChannelClient *rcc, RedPipeItem
     klass->send_item(rcc, item);
 }
 
-uint8_t* red_channel_alloc_recv_buf(RedChannel *self, RedChannelClient *rcc,
-                                    uint16_t type, uint32_t size)
-{
-    RedChannelClass *klass = RED_CHANNEL_GET_CLASS(self);
-
-    return klass->alloc_recv_buf(rcc, type, size);
-}
-
-void red_channel_release_recv_buf(RedChannel *self, RedChannelClient *rcc,
-                                  uint16_t type, uint32_t size, uint8_t *msg)
-{
-    RedChannelClass *klass = RED_CHANNEL_GET_CLASS(self);
-
-    klass->release_recv_buf(rcc, type, size, msg);
-}
-
-int red_channel_handle_migrate_flush_mark(RedChannel *self, RedChannelClient *rcc)
-{
-    RedChannelClass *klass = RED_CHANNEL_GET_CLASS(self);
-    g_return_val_if_fail(klass->handle_migrate_flush_mark, FALSE);
-
-    return klass->handle_migrate_flush_mark(rcc);
-}
-
 IncomingHandlerInterface* red_channel_get_incoming_handler(RedChannel *self)
 {
     return &self->priv->incoming_cb;
diff --git a/server/red-channel.h b/server/red-channel.h
index f99a03f..89aab8d 100644
--- a/server/red-channel.h
+++ b/server/red-channel.h
@@ -316,11 +316,6 @@ SpiceCoreInterfaceInternal* red_channel_get_core_interface(RedChannel *channel);
 int red_channel_config_socket(RedChannel *self, RedChannelClient *rcc);
 void red_channel_on_disconnect(RedChannel *self, RedChannelClient *rcc);
 void red_channel_send_item(RedChannel *self, RedChannelClient *rcc, RedPipeItem *item);
-uint8_t* red_channel_alloc_recv_buf(RedChannel *self, RedChannelClient *rcc,
-                                    uint16_t type, uint32_t size);
-void red_channel_release_recv_buf(RedChannel *self, RedChannelClient *rcc,
-                                  uint16_t type, uint32_t size, uint8_t *msg);
-int red_channel_handle_migrate_flush_mark(RedChannel *self, RedChannelClient *rcc);
 void red_channel_reset_thread_id(RedChannel *self);
 StatNodeRef red_channel_get_stat_node(RedChannel *channel);
 
-- 
2.7.4



More information about the Spice-devel mailing list