[nautilus-actions] Remove some debug messages



commit 709d098f5c991daecefb5d81776c6c240308b959
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Jan 30 05:59:04 2012 +0100

    Remove some debug messages

 ChangeLog                |    5 +++++
 src/core/na-data-boxed.c |   10 ----------
 src/core/na-object-id.c  |    4 ----
 src/core/na-object.c     |    9 ---------
 4 files changed, 5 insertions(+), 23 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index edf48ef..e226f9a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-01-30 Pierre Wieser <pwieser trychlos org>
 
+	* src/core/na-data-boxed.c (instance_init, instance_finalize):
+	* src/core/na-object-id.c (instance_dispose):
+	* src/core/na-object.c (instance_init, instance_dispose,
+	instance_finalize): Remove some too verbose debug messages.
+
 	* src/nact/base-window.c:
 	* src/nact/base-window.h: Define a new BASE_PROP_DESTROY_ON_DISPOSE property.
 	When set, the underlying Gtk toplevel is destroyed when the BaseWindow is
diff --git a/src/core/na-data-boxed.c b/src/core/na-data-boxed.c
index 7e4d578..6740948 100644
--- a/src/core/na-data-boxed.c
+++ b/src/core/na-data-boxed.c
@@ -200,14 +200,10 @@ class_init( NADataBoxedClass *klass )
 static void
 instance_init( GTypeInstance *instance, gpointer klass )
 {
-	static const gchar *thisfn = "na_data_boxed_instance_init";
 	NADataBoxed *self;
 
 	g_return_if_fail( NA_IS_DATA_BOXED( instance ));
 
-	g_debug( "%s: instance=%p (%s), klass=%p",
-			thisfn, ( void * ) instance, G_OBJECT_TYPE_NAME( instance ), ( void * ) klass );
-
 	self = NA_DATA_BOXED( instance );
 
 	self->private = g_new0( NADataBoxedPrivate, 1 );
@@ -240,16 +236,10 @@ instance_dispose( GObject *object )
 static void
 instance_finalize( GObject *object )
 {
-	static const gchar *thisfn = "na_data_boxed_instance_finalize";
 	NADataBoxed *self;
 
 	g_return_if_fail( NA_IS_DATA_BOXED( object ));
 
-	g_debug( "%s: object=%p (%s), name=%s",
-			thisfn,
-			( void * ) object, G_OBJECT_TYPE_NAME( object ),
-			NA_DATA_BOXED( object )->private->data_def->name );
-
 	self = NA_DATA_BOXED( object );
 
 	g_free( self->private );
diff --git a/src/core/na-object-id.c b/src/core/na-object-id.c
index 097a668..61863bb 100644
--- a/src/core/na-object-id.c
+++ b/src/core/na-object-id.c
@@ -134,7 +134,6 @@ instance_init( GTypeInstance *instance, gpointer klass )
 static void
 instance_dispose( GObject *object )
 {
-	static const gchar *thisfn = "na_object_id_instance_dispose";
 	NAObjectId *self;
 	NAObjectItem *parent;
 
@@ -147,11 +146,8 @@ instance_dispose( GObject *object )
 		self->private->dispose_has_run = TRUE;
 
 		parent = na_object_get_parent( object );
-		g_debug( "%s: parent=%p (%s)",
-				thisfn, ( void * ) parent, parent ? G_OBJECT_TYPE_NAME( parent ) : "n/a" );
 		if( parent ){
 			na_object_remove_item( parent, object );
-			na_object_set_parent( object, NULL );
 		}
 
 		self->private->dispose_has_run = TRUE;
diff --git a/src/core/na-object.c b/src/core/na-object.c
index 8678fa6..e6f6ec5 100644
--- a/src/core/na-object.c
+++ b/src/core/na-object.c
@@ -142,23 +142,18 @@ class_init( NAObjectClass *klass )
 static void
 instance_init( GTypeInstance *instance, gpointer klass )
 {
-	static const gchar *thisfn = "na_object_instance_init";
 	NAObject *self;
 
 	g_return_if_fail( NA_IS_OBJECT( instance ));
 
 	self = NA_OBJECT( instance );
 
-	g_debug( "%s: instance=%p (%s), klass=%p",
-			thisfn, ( void * ) instance, G_OBJECT_TYPE_NAME( instance ), ( void * ) klass );
-
 	self->private = g_new0( NAObjectPrivate, 1 );
 }
 
 static void
 instance_dispose( GObject *object )
 {
-	static const gchar *thisfn = "na_object_instance_dispose";
 	NAObject *self;
 
 	g_return_if_fail( NA_IS_OBJECT( object ));
@@ -166,7 +161,6 @@ instance_dispose( GObject *object )
 	self = NA_OBJECT( object );
 
 	if( !self->private->dispose_has_run ){
-		g_debug( "%s: object=%p (%s)", thisfn, ( void * ) object, G_OBJECT_TYPE_NAME( object ));
 
 		self->private->dispose_has_run = TRUE;
 
@@ -182,15 +176,12 @@ instance_dispose( GObject *object )
 static void
 instance_finalize( GObject *object )
 {
-	static const gchar *thisfn = "na_object_instance_finalize";
 	NAObject *self;
 
 	g_return_if_fail( NA_IS_OBJECT( object ));
 
 	self = NA_OBJECT( object );
 
-	g_debug( "%s: object=%p (%s)", thisfn, ( void * ) object, G_OBJECT_TYPE_NAME( object ));
-
 	g_free( self->private );
 
 	if( NA_IS_IFACTORY_OBJECT( object )){



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