[evolution] Remove unused e_tree_model_node_get_prev().



commit f1ee71f71f9af35fba479fe3d74d82ddaecebd66
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Jun 15 11:11:55 2013 -0400

    Remove unused e_tree_model_node_get_prev().

 .../evolution-util/evolution-util-sections.txt     |    1 -
 e-util/e-tree-memory.c                             |   10 ---------
 e-util/e-tree-model.c                              |   22 --------------------
 e-util/e-tree-model.h                              |    4 ---
 4 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index 3c2d2f6..7ed1d89 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4344,7 +4344,6 @@ e_tree_model_get_root
 e_tree_model_node_get_parent
 e_tree_model_node_get_first_child
 e_tree_model_node_get_next
-e_tree_model_node_get_prev
 e_tree_model_node_is_root
 e_tree_model_node_is_expandable
 e_tree_model_node_get_children
diff --git a/e-util/e-tree-memory.c b/e-util/e-tree-memory.c
index f15c4bb..93d0184 100644
--- a/e-util/e-tree-memory.c
+++ b/e-util/e-tree-memory.c
@@ -201,15 +201,6 @@ tree_memory_get_next (ETreeModel *etm,
        return path->next_sibling;
 }
 
-static ETreePath
-tree_memory_get_prev (ETreeModel *etm,
-                      ETreePath node)
-{
-       ETreeMemoryPath *path = node;
-
-       return path->prev_sibling;
-}
-
 static gboolean
 tree_memory_is_root (ETreeModel *etm,
                      ETreePath node)
@@ -279,7 +270,6 @@ e_tree_memory_class_init (ETreeMemoryClass *class)
 
        tree_model_class = E_TREE_MODEL_CLASS (class);
        tree_model_class->get_root = tree_memory_get_root;
-       tree_model_class->get_prev = tree_memory_get_prev;
        tree_model_class->get_next = tree_memory_get_next;
        tree_model_class->get_first_child = tree_memory_get_first_child;
        tree_model_class->get_parent = tree_memory_get_parent;
diff --git a/e-util/e-tree-model.c b/e-util/e-tree-model.c
index 3d1531e..6431f88 100644
--- a/e-util/e-tree-model.c
+++ b/e-util/e-tree-model.c
@@ -172,7 +172,6 @@ e_tree_model_class_init (ETreeModelClass *class)
        class->get_parent            = NULL;
        class->get_first_child       = NULL;
        class->get_next              = NULL;
-       class->get_prev              = NULL;
 
        class->is_root               = NULL;
        class->is_expandable         = NULL;
@@ -487,27 +486,6 @@ e_tree_model_node_get_next (ETreeModel *tree_model,
 }
 
 /**
- * e_tree_model_node_get_prev:
- * @tree_model:
- * @path:
- *
- *
- *
- * Return value:
- **/
-ETreePath
-e_tree_model_node_get_prev (ETreeModel *tree_model,
-                            ETreePath path)
-{
-       g_return_val_if_fail (E_IS_TREE_MODEL (tree_model), NULL);
-
-       if (ETM_CLASS (tree_model)->get_prev)
-               return ETM_CLASS (tree_model)->get_prev (tree_model, path);
-       else
-               return NULL;
-}
-
-/**
  * e_tree_model_node_is_root:
  * @tree_model:
  * @path:
diff --git a/e-util/e-tree-model.h b/e-util/e-tree-model.h
index d10c69e..1911f76 100644
--- a/e-util/e-tree-model.h
+++ b/e-util/e-tree-model.h
@@ -79,8 +79,6 @@ struct _ETreeModelClass {
                                                 ETreePath path);
        ETreePath       (*get_next)             (ETreeModel *tree_model,
                                                 ETreePath path);
-       ETreePath       (*get_prev)             (ETreeModel *tree_model,
-                                                ETreePath path);
 
        gboolean        (*is_root)              (ETreeModel *tree_model,
                                                 ETreePath path);
@@ -189,8 +187,6 @@ ETreePath   e_tree_model_node_get_first_child
                                                 ETreePath path);
 ETreePath      e_tree_model_node_get_next      (ETreeModel *tree_model,
                                                 ETreePath path);
-ETreePath      e_tree_model_node_get_prev      (ETreeModel *tree_model,
-                                                ETreePath path);
 
 /* node accessors */
 gboolean       e_tree_model_node_is_root       (ETreeModel *tree_model,


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