[gdm/wip/slave-display-merger: 21/29] simple-slave: get rid of finalize method



commit 5da1f30a4d8ffa15382d636fa2462c20b44b278b
Author: Ray Strode <rstrode redhat com>
Date:   Thu Jan 29 16:55:23 2015 -0500

    simple-slave: get rid of finalize method
    
    We don't do anything in it.

 daemon/gdm-simple-slave.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c
index c5a3927..ba9ca6d 100644
--- a/daemon/gdm-simple-slave.c
+++ b/daemon/gdm-simple-slave.c
@@ -85,7 +85,6 @@ enum {
 
 static void     gdm_simple_slave_class_init     (GdmSimpleSlaveClass *klass);
 static void     gdm_simple_slave_init           (GdmSimpleSlave      *simple_slave);
-static void     gdm_simple_slave_finalize       (GObject             *object);
 
 G_DEFINE_TYPE (GdmSimpleSlave, gdm_simple_slave, GDM_TYPE_SLAVE)
 
@@ -341,11 +340,8 @@ gdm_simple_slave_stop (GdmSlave *slave)
 static void
 gdm_simple_slave_class_init (GdmSimpleSlaveClass *klass)
 {
-        GObjectClass  *object_class = G_OBJECT_CLASS (klass);
         GdmSlaveClass *slave_class = GDM_SLAVE_CLASS (klass);
 
-        object_class->finalize = gdm_simple_slave_finalize;
-
         slave_class->start = gdm_simple_slave_start;
         slave_class->stop = gdm_simple_slave_stop;
 
@@ -360,18 +356,3 @@ gdm_simple_slave_init (GdmSimpleSlave *slave)
         slave->priv->use_logindevperm = FALSE;
 #endif
 }
-
-static void
-gdm_simple_slave_finalize (GObject *object)
-{
-        GdmSimpleSlave *slave;
-
-        g_return_if_fail (object != NULL);
-        g_return_if_fail (GDM_IS_SIMPLE_SLAVE (object));
-
-        slave = GDM_SIMPLE_SLAVE (object);
-
-        g_return_if_fail (slave->priv != NULL);
-
-        G_OBJECT_CLASS (gdm_simple_slave_parent_class)->finalize (object);
-}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]