aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-15 22:07:41 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-15 22:07:41 +0800
commit9a6a323c626a2991e0f2fc64fe504b8ee7d42392 (patch)
tree2febae6a3ec5fa1cd044be3a3ac927ba4bc072a7
parent0b1e95fb3fcf65a8ab5594c68dbd47f0d665680f (diff)
downloadgsoc2013-evolution-9a6a323c626a2991e0f2fc64fe504b8ee7d42392.tar
gsoc2013-evolution-9a6a323c626a2991e0f2fc64fe504b8ee7d42392.tar.gz
gsoc2013-evolution-9a6a323c626a2991e0f2fc64fe504b8ee7d42392.tar.bz2
gsoc2013-evolution-9a6a323c626a2991e0f2fc64fe504b8ee7d42392.tar.lz
gsoc2013-evolution-9a6a323c626a2991e0f2fc64fe504b8ee7d42392.tar.xz
gsoc2013-evolution-9a6a323c626a2991e0f2fc64fe504b8ee7d42392.tar.zst
gsoc2013-evolution-9a6a323c626a2991e0f2fc64fe504b8ee7d42392.zip
Remove unused e_tree_memory_sort_node().
-rw-r--r--doc/reference/evolution-util/evolution-util-sections.txt2
-rw-r--r--e-util/e-tree-memory.c77
-rw-r--r--e-util/e-tree-memory.h9
3 files changed, 0 insertions, 88 deletions
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt
index eb7bab68de..e04d7a8f0e 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4293,8 +4293,6 @@ e_tree_memory_thaw
e_tree_memory_set_expanded_default
e_tree_memory_node_get_data
e_tree_memory_node_set_data
-ETreeMemorySortCallback
-e_tree_memory_sort_node
e_tree_memory_set_node_destroy_func
<SUBSECTION Standard>
E_TREE_MEMORY
diff --git a/e-util/e-tree-memory.c b/e-util/e-tree-memory.c
index 0b92b17ac4..017bb49844 100644
--- a/e-util/e-tree-memory.c
+++ b/e-util/e-tree-memory.c
@@ -611,83 +611,6 @@ e_tree_memory_node_remove (ETreeMemory *tree_memory,
return ret;
}
-typedef struct {
- ETreeMemory *memory;
- gpointer closure;
- ETreeMemorySortCallback callback;
-} MemoryAndClosure;
-
-static gint
-sort_callback (gconstpointer data1,
- gconstpointer data2,
- gpointer user_data)
-{
- ETreePath path1 = *(ETreePath *) data1;
- ETreePath path2 = *(ETreePath *) data2;
- MemoryAndClosure *mac = user_data;
- return (*mac->callback) (mac->memory, path1, path2, mac->closure);
-}
-
-void
-e_tree_memory_sort_node (ETreeMemory *tree_memory,
- ETreePath node,
- ETreeMemorySortCallback callback,
- gpointer user_data)
-{
- ETreeMemoryPath **children;
- ETreeMemoryPath *child;
- gint count;
- gint i;
- ETreeMemoryPath *path = node;
- MemoryAndClosure mac;
- ETreeMemoryPath *last;
-
- e_tree_model_pre_change (E_TREE_MODEL (tree_memory));
-
- i = 0;
- for (child = path->first_child; child; child = child->next_sibling)
- i++;
-
- children = g_new (ETreeMemoryPath *, i);
-
- count = i;
-
- for (child = path->first_child, i = 0;
- child;
- child = child->next_sibling, i++) {
- children[i] = child;
- }
-
- mac.memory = tree_memory;
- mac.closure = user_data;
- mac.callback = callback;
-
- g_qsort_with_data (
- children, count, sizeof (ETreeMemoryPath *),
- sort_callback, &mac);
-
- path->first_child = NULL;
- last = NULL;
- for (i = 0;
- i < count;
- i++) {
- children[i]->prev_sibling = last;
- if (last)
- last->next_sibling = children[i];
- else
- path->first_child = children[i];
- last = children[i];
- }
- if (last)
- last->next_sibling = NULL;
-
- path->last_child = last;
-
- g_free (children);
-
- e_tree_model_node_changed (E_TREE_MODEL (tree_memory), node);
-}
-
void
e_tree_memory_set_node_destroy_func (ETreeMemory *tree_memory,
GFunc destroy_func,
diff --git a/e-util/e-tree-memory.h b/e-util/e-tree-memory.h
index 532a40ef0a..2e18b56fd0 100644
--- a/e-util/e-tree-memory.h
+++ b/e-util/e-tree-memory.h
@@ -58,11 +58,6 @@ typedef struct _ETreeMemory ETreeMemory;
typedef struct _ETreeMemoryClass ETreeMemoryClass;
typedef struct _ETreeMemoryPrivate ETreeMemoryPrivate;
-typedef gint (*ETreeMemorySortCallback) (ETreeMemory *tree_memory,
- ETreePath path1,
- ETreePath path2,
- gpointer closure);
-
struct _ETreeMemory {
ETreeModel parent;
ETreeMemoryPrivate *priv;
@@ -99,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_sort_node (ETreeMemory *tree_memory,
- ETreePath node,
- ETreeMemorySortCallback callback,
- gpointer user_data);
void e_tree_memory_set_node_destroy_func
(ETreeMemory *tree_memory,
GFunc destroy_func,