[Xfce4-commits] <midori:master> Clean up redundant user addons item list copies in helper functions

Christian Dywan noreply at xfce.org
Sun Aug 22 03:36:03 CEST 2010


Updating branch refs/heads/master
         to ac1ba277e445a3741a8f085382eb5968c787b854 (commit)
       from 8bea9b586d25a002da2a6e0a57dd266ceb172056 (commit)

commit ac1ba277e445a3741a8f085382eb5968c787b854
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Sat Aug 21 21:21:30 2010 +0200

    Clean up redundant user addons item list copies in helper functions

 extensions/addons.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/extensions/addons.c b/extensions/addons.c
index 1d9cdea..088aa33 100644
--- a/extensions/addons.c
+++ b/extensions/addons.c
@@ -358,7 +358,6 @@ addons_get_files (AddonsKind kind)
 {
     GSList* files;
     GDir* addon_dir;
-    GSList* list;
     GSList* directories;
     const gchar* filename;
     gchar* dirname;
@@ -375,7 +374,6 @@ addons_get_files (AddonsKind kind)
     files = NULL;
 
     directories = addons_get_directories (kind);
-    list = directories;
     while (directories)
     {
         dirname = directories->data;
@@ -395,7 +393,6 @@ addons_get_files (AddonsKind kind)
         directories = g_slist_next (directories);
     }
 
-    g_slist_free (list);
     g_free (file_extension);
 
     return files;
@@ -1179,7 +1176,6 @@ addons_monitor_directories (MidoriExtension* extension,
                             AddonsKind kind)
 {
     GSList* directories;
-    GSList* list;
     GError* error;
     GSList* monitors;
     GFileMonitor* monitor;
@@ -1190,7 +1186,6 @@ addons_monitor_directories (MidoriExtension* extension,
     monitors = g_object_get_data (G_OBJECT (extension), "monitors");
 
     directories = addons_get_directories (kind);
-    list = directories;
     while (directories)
     {
         directory = g_file_new_for_path (directories->data);



More information about the Xfce4-commits mailing list