[gdm/wip/xserver-in-session: 28/54] simple-slave: get rid of finalize method



commit 8610dd143104592037521617a3954da360fb7825
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 4f0bf3d..e596938 100644
--- a/daemon/gdm-simple-slave.c
+++ b/daemon/gdm-simple-slave.c
@@ -81,7 +81,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)
 
@@ -239,11 +238,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;
 
@@ -258,18 +254,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]