From a0960cf4ff54401023c891c58e7a85a32bd75959 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 15 Jun 2013 10:11:28 -0400 Subject: Remove unused e_tree_memory_set_node_destroy_func(). --- doc/reference/evolution-util/evolution-util-sections.txt | 1 - e-util/e-tree-memory.c | 14 -------------- e-util/e-tree-memory.h | 4 ---- 3 files changed, 19 deletions(-) diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt index e04d7a8f0e..90acc0768b 100644 --- a/doc/reference/evolution-util/evolution-util-sections.txt +++ b/doc/reference/evolution-util/evolution-util-sections.txt @@ -4293,7 +4293,6 @@ e_tree_memory_thaw e_tree_memory_set_expanded_default e_tree_memory_node_get_data e_tree_memory_node_set_data -e_tree_memory_set_node_destroy_func E_TREE_MEMORY E_IS_TREE_MEMORY diff --git a/e-util/e-tree-memory.c b/e-util/e-tree-memory.c index 017bb49844..aacb2759dd 100644 --- a/e-util/e-tree-memory.c +++ b/e-util/e-tree-memory.c @@ -76,8 +76,6 @@ struct _ETreeMemoryPrivate { gboolean expanded_default; gint frozen; - GFunc destroy_func; - gpointer destroy_user_data; }; /* ETreeMemoryPath functions */ @@ -555,10 +553,6 @@ child_free (ETreeMemory *tree_memory, child = next; } - if (tree_memory->priv->destroy_func) { - tree_memory->priv->destroy_func (node->node_data, tree_memory->priv->destroy_user_data); - } - g_slice_free (ETreeMemoryPath, node); } @@ -611,11 +605,3 @@ e_tree_memory_node_remove (ETreeMemory *tree_memory, return ret; } -void -e_tree_memory_set_node_destroy_func (ETreeMemory *tree_memory, - GFunc destroy_func, - gpointer user_data) -{ - tree_memory->priv->destroy_func = destroy_func; - tree_memory->priv->destroy_user_data = user_data; -} diff --git a/e-util/e-tree-memory.h b/e-util/e-tree-memory.h index 2e18b56fd0..bb9b3253d1 100644 --- a/e-util/e-tree-memory.h +++ b/e-util/e-tree-memory.h @@ -94,10 +94,6 @@ gpointer e_tree_memory_node_get_data (ETreeMemory *tree_memory, void e_tree_memory_node_set_data (ETreeMemory *tree_memory, ETreePath node, gpointer node_data); -void e_tree_memory_set_node_destroy_func - (ETreeMemory *tree_memory, - GFunc destroy_func, - gpointer user_data); G_END_DECLS -- cgit v1.2.3