revert last commit
authorPaul Mangan <paul@claws-mail.org>
Wed, 22 Jan 2003 17:24:34 +0000 (17:24 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 22 Jan 2003 17:24:34 +0000 (17:24 +0000)
src/folder.c

index a5ad8c15f8e11395cd7fffc2eb1830a61970cf5c..e4eb3c06b39b5bd321347299605f3c5db4419d47 100644 (file)
@@ -247,11 +247,6 @@ void folder_item_append(FolderItem *parent, FolderItem *item)
        g_node_append_data(node, item);
 }
 
-gboolean folder_item_remove_func(GNode *node, gpointer data)
-{
-       folder_item_destroy((FolderItem *)node->data);
-}
-
 void folder_item_remove(FolderItem *item)
 {
        GNode *node;
@@ -263,9 +258,6 @@ void folder_item_remove(FolderItem *item)
        node = g_node_find(node, G_PRE_ORDER, G_TRAVERSE_ALL, item);
        g_return_if_fail(node != NULL);
 
-       g_node_traverse(node, G_POST_ORDER, G_TRAVERSE_ALL, -1,
-                       folder_item_remove_func, NULL);
-
        /* TODO: free all FolderItem's first */
        if (item->folder->node == node)
                item->folder->node = NULL;