[gvfs/wip/udisks2] Clean up constructor



commit c1eb0b14afe55a7934da552a7d6a9060650837c8
Author: David Zeuthen <davidz redhat com>
Date:   Mon Sep 26 11:56:26 2011 -0400

    Clean up constructor
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 monitor/udisks2/gvfsudisks2volumemonitor.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2volumemonitor.c b/monitor/udisks2/gvfsudisks2volumemonitor.c
index 980856c..a3fabc6 100644
--- a/monitor/udisks2/gvfsudisks2volumemonitor.c
+++ b/monitor/udisks2/gvfsudisks2volumemonitor.c
@@ -131,10 +131,7 @@ gvfs_udisks2_volume_monitor_constructor (GType                  type,
       goto out;
     }
 
-  /*g_warning ("creating gdu vm");*/
-
-  /* Invoke parent constructor. */
-  parent_class = G_OBJECT_CLASS (g_type_class_peek_parent (g_type_class_peek (GVFS_TYPE_UDISKS2_VOLUME_MONITOR)));
+  parent_class = G_OBJECT_CLASS (g_type_class_peek_parent (g_type_class_peek (type)));
   ret = parent_class->constructor (type,
                                    n_construct_properties,
                                    construct_properties);



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