[gnome-applets] sticky-notes: remove unused variable



commit eab19f9027149a47bf6e0560334cb94aef73563a
Author: Sebastian Geiger <sbastig gmx net>
Date:   Mon Apr 13 16:49:53 2020 +0200

    sticky-notes: remove unused variable
    
    The new_nodes list was never read, so it can be removed.

 gnome-applets/sticky-notes/sticky-notes.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gnome-applets/sticky-notes/sticky-notes.c b/gnome-applets/sticky-notes/sticky-notes.c
index d953a7e8e..2f22d9fb4 100644
--- a/gnome-applets/sticky-notes/sticky-notes.c
+++ b/gnome-applets/sticky-notes/sticky-notes.c
@@ -1262,7 +1262,6 @@ stickynotes_load (StickyNotesApplet *applet)
        xmlNodePtr node;
 
        GList *new_notes, *tmp1;  /* Lists of StickyNote*'s */
-       GList *new_nodes; /* Lists of xmlNodePtr's */
        int x, y, w, h;
 
        {
@@ -1304,7 +1303,7 @@ stickynotes_load (StickyNotesApplet *applet)
 
        /* For all children of the root node (ie all sticky notes) */
        new_notes = NULL;
-       new_nodes = NULL;
+
        while (node) {
                if (!xmlStrcmp(node->name, (const xmlChar *) "note"))
                {
@@ -1353,7 +1352,6 @@ stickynotes_load (StickyNotesApplet *applet)
                        note = stickynote_new_aux (applet, x, y, w, h);
                        applet->notes = g_list_append (applet->notes, note);
                        new_notes = g_list_append (new_notes, note);
-                       new_nodes = g_list_append (new_nodes, node);
 
                        /* Retrieve and set title of the note */
                        {
@@ -1445,7 +1443,6 @@ stickynotes_load (StickyNotesApplet *applet)
        }
 
        g_list_free (new_notes);
-       g_list_free (new_nodes);
 
        xmlFreeDoc(doc);
 }


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