[Spice-devel] [PATCH 2/2] fixup! Convert RedChannelClient hierarchy to GObject
Jonathon Jongsma
jjongsma at redhat.com
Wed Oct 5 16:34:09 UTC 2016
Remove a couple unimplemented gobject vfuncs
---
server/cursor-channel-client.c | 9 ---------
server/main-channel-client.c | 12 ------------
2 files changed, 21 deletions(-)
diff --git a/server/cursor-channel-client.c b/server/cursor-channel-client.c
index 51fef19..19ac8e7 100644
--- a/server/cursor-channel-client.c
+++ b/server/cursor-channel-client.c
@@ -52,19 +52,10 @@ struct CursorChannelClientPrivate
uint32_t cursor_cache_items;
};
-static void cursor_channel_client_constructed(GObject *object)
-{
- G_OBJECT_CLASS(cursor_channel_client_parent_class)->constructed(object);
-}
-
static void
cursor_channel_client_class_init(CursorChannelClientClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS(klass);
-
g_type_class_add_private(klass, sizeof(CursorChannelClientPrivate));
-
- object_class->constructed = cursor_channel_client_constructed;
}
static void
diff --git a/server/main-channel-client.c b/server/main-channel-client.c
index ec9c3e1..cff50c1 100644
--- a/server/main-channel-client.c
+++ b/server/main-channel-client.c
@@ -162,16 +162,6 @@ static void main_channel_client_set_property(GObject *object,
}
}
-static void main_channel_client_dispose(GObject *object)
-{
- G_OBJECT_CLASS(main_channel_client_parent_class)->dispose(object);
-}
-
-static void main_channel_client_finalize(GObject *object)
-{
- G_OBJECT_CLASS(main_channel_client_parent_class)->finalize(object);
-}
-
static void ping_timer_cb(void *opaque);
static void main_channel_client_constructed(GObject *object)
{
@@ -196,8 +186,6 @@ static void main_channel_client_class_init(MainChannelClientClass *klass)
object_class->get_property = main_channel_client_get_property;
object_class->set_property = main_channel_client_set_property;
- object_class->dispose = main_channel_client_dispose;
- object_class->finalize = main_channel_client_finalize;
object_class->constructed = main_channel_client_constructed;
g_object_class_install_property(object_class,
--
2.7.4
More information about the Spice-devel
mailing list