[nautilus-actions: 13/19] Remove unused function



commit c559d511d12a21a3ba81eb15e5329d8589f33e9e
Author: Pierre Wieser <pwieser trychlos org>
Date:   Tue Jun 9 21:56:41 2009 +0200

    Remove unused function
---
 ChangeLog                   |    3 +++
 src/common/nact-uti-lists.c |   21 +++------------------
 src/common/nact-uti-lists.h |    4 +---
 3 files changed, 7 insertions(+), 21 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bab3c80..cc2c23c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,9 @@
 	* src/common/nact-pivot.h
 	(nact_pivot_get_action): Remove function and cleanup the code.
 
+	* src/common/nact-uti.c:
+	* src/common/nact-uti.h (nactuti_free_object_list): Remove function.
+
 	* src/plugin/nautilus-actions.c:
 	The plugin now uses the new object hierarchy to handle menu items.
 	Fix #580378 (context menu doesn't update) reported by James Campos.
diff --git a/src/common/nact-uti-lists.c b/src/common/nact-uti-lists.c
index 3ac6c11..a5e9e14 100644
--- a/src/common/nact-uti-lists.c
+++ b/src/common/nact-uti-lists.c
@@ -35,24 +35,9 @@
 #include "nact-uti-lists.h"
 
 /**
- * Free a GSList of GObjects.
+ * Duplicates a GSList of strings.
  *
- * @list: the GSList to be freed.
- */
-void
-nactuti_free_object_list( GSList *list )
-{
-	GSList *item;
-	for( item = list ; item != NULL ; item = item->next ){
-		g_object_unref( G_OBJECT( item->data ));
-	}
-	g_slist_free( list );
-}
-
-/**
- * Duplicate a GSList of strings.
- *
- * @list: the GSList to be freed.
+ * @list: the GSList to be duplicated.
  */
 GSList *
 nactuti_duplicate_string_list( GSList *list )
@@ -67,7 +52,7 @@ nactuti_duplicate_string_list( GSList *list )
 }
 
 /**
- * Free a GSList of strings.
+ * Frees a GSList of strings.
  *
  * @list: the GSList to be freed.
  */
diff --git a/src/common/nact-uti-lists.h b/src/common/nact-uti-lists.h
index bd178e3..9eba96c 100644
--- a/src/common/nact-uti-lists.h
+++ b/src/common/nact-uti-lists.h
@@ -39,10 +39,8 @@
 
 G_BEGIN_DECLS
 
-void     nactuti_free_object_list( GSList *list );
-
-gboolean nactuti_is_empty_string_list( GSList *list );
 GSList  *nactuti_duplicate_string_list( GSList *list );
+
 void     nactuti_free_string_list( GSList *list );
 
 G_END_DECLS



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