aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-15 21:58:44 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-15 21:58:44 +0800
commit0b1e95fb3fcf65a8ab5594c68dbd47f0d665680f (patch)
treedcf1d757cfe811dafb63ecb9f8fe93e96f70baee /e-util
parentf198b7524d617b986a5a716acc1b377377c8796c (diff)
downloadgsoc2013-evolution-0b1e95fb3fcf65a8ab5594c68dbd47f0d665680f.tar.gz
gsoc2013-evolution-0b1e95fb3fcf65a8ab5594c68dbd47f0d665680f.tar.zst
gsoc2013-evolution-0b1e95fb3fcf65a8ab5594c68dbd47f0d665680f.zip
Remove unused e_tree_memory_node_insert_before().
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-tree-memory.c35
-rw-r--r--e-util/e-tree-memory.h5
2 files changed, 0 insertions, 40 deletions
diff --git a/e-util/e-tree-memory.c b/e-util/e-tree-memory.c
index 30fa6465a1..0b92b17ac4 100644
--- a/e-util/e-tree-memory.c
+++ b/e-util/e-tree-memory.c
@@ -541,41 +541,6 @@ e_tree_memory_node_insert (ETreeMemory *tree_memory,
return new_path;
}
-/**
- * e_tree_memory_node_insert_before:
- * @tree_memory:
- * @parent:
- * @sibling:
- * @node_data:
- *
- *
- *
- * Return value:
- **/
-ETreePath
-e_tree_memory_node_insert_before (ETreeMemory *tree_memory,
- ETreePath parent,
- ETreePath sibling,
- gpointer node_data)
-{
- ETreeMemoryPath *child;
- ETreeMemoryPath *parent_path = parent;
- ETreeMemoryPath *sibling_path = sibling;
- gint position = 0;
-
- g_return_val_if_fail (tree_memory != NULL, NULL);
-
- if (sibling != NULL) {
- for (child = parent_path->first_child; child; child = child->next_sibling) {
- if (child == sibling_path)
- break;
- position++;
- }
- } else
- position = parent_path->num_children;
- return e_tree_memory_node_insert (tree_memory, parent, position, node_data);
-}
-
/* just blows away child data, doesn't take into account unlinking/etc */
static void
child_free (ETreeMemory *tree_memory,
diff --git a/e-util/e-tree-memory.h b/e-util/e-tree-memory.h
index aa47ce3ad1..532a40ef0a 100644
--- a/e-util/e-tree-memory.h
+++ b/e-util/e-tree-memory.h
@@ -85,11 +85,6 @@ ETreePath e_tree_memory_node_insert (ETreeMemory *tree_memory,
ETreePath parent_node,
gint position,
gpointer node_data);
-ETreePath e_tree_memory_node_insert_before
- (ETreeMemory *tree_memory,
- ETreePath parent,
- ETreePath sibling,
- gpointer node_data);
gpointer e_tree_memory_node_remove (ETreeMemory *tree_memory,
ETreePath path);