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

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


Removed unused RedSmartcardChannelPrivate structure.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/smartcard.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/server/smartcard.c b/server/smartcard.c
index 6974cb1..655eaf7 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -64,13 +64,10 @@
 
 typedef struct RedSmartcardChannel RedSmartcardChannel;
 typedef struct RedSmartcardChannelClass RedSmartcardChannelClass;
-typedef struct RedSmartcardChannelPrivate RedSmartcardChannelPrivate;
 
 struct RedSmartcardChannel
 {
     RedChannel parent;
-
-    RedSmartcardChannelPrivate *priv;
 };
 
 struct RedSmartcardChannelClass
@@ -82,18 +79,9 @@ GType red_smartcard_channel_get_type(void) G_GNUC_CONST;
 
 G_DEFINE_TYPE(RedSmartcardChannel, red_smartcard_channel, RED_TYPE_CHANNEL)
 
-#define SMARTCARD_CHANNEL_PRIVATE(o) \
-    (G_TYPE_INSTANCE_GET_PRIVATE((o), RED_TYPE_SMARTCARD_CHANNEL, RedSmartcardChannelPrivate))
-
-struct RedSmartcardChannelPrivate
-{
-    gpointer padding;
-};
-
 static void
 red_smartcard_channel_init(RedSmartcardChannel *self)
 {
-    self->priv = SMARTCARD_CHANNEL_PRIVATE(self);
 }
 
 static RedSmartcardChannel *
@@ -600,8 +588,6 @@ red_smartcard_channel_class_init(RedSmartcardChannelClass *klass)
     GObjectClass *object_class = G_OBJECT_CLASS(klass);
     RedChannelClass *channel_class = RED_CHANNEL_CLASS(klass);
 
-    g_type_class_add_private(klass, sizeof(RedSmartcardChannelPrivate));
-
     object_class->constructed = red_smartcard_channel_constructed;
 
     channel_class->handle_message = smartcard_channel_client_handle_message,
-- 
2.7.4



More information about the Spice-devel mailing list