[evolution] Remove unused e_tree_model_node_get_last_child().



commit e808cf140deb6906445392c71f69ab87699c0040
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Jun 15 11:09:28 2013 -0400

    Remove unused e_tree_model_node_get_last_child().

 .../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                              |    5 ----
 4 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index b323921..3c2d2f6 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4343,7 +4343,6 @@ ETreePath
 e_tree_model_get_root
 e_tree_model_node_get_parent
 e_tree_model_node_get_first_child
-e_tree_model_node_get_last_child
 e_tree_model_node_get_next
 e_tree_model_node_get_prev
 e_tree_model_node_is_root
diff --git a/e-util/e-tree-memory.c b/e-util/e-tree-memory.c
index 37f6351..f15c4bb 100644
--- a/e-util/e-tree-memory.c
+++ b/e-util/e-tree-memory.c
@@ -193,15 +193,6 @@ tree_memory_get_first_child (ETreeModel *etm,
 }
 
 static ETreePath
-tree_memory_get_last_child (ETreeModel *etm,
-                            ETreePath node)
-{
-       ETreeMemoryPath *path = node;
-
-       return path->last_child;
-}
-
-static ETreePath
 tree_memory_get_next (ETreeModel *etm,
                       ETreePath node)
 {
@@ -291,7 +282,6 @@ e_tree_memory_class_init (ETreeMemoryClass *class)
        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_last_child = tree_memory_get_last_child;
        tree_model_class->get_parent = tree_memory_get_parent;
 
        tree_model_class->is_root = tree_memory_is_root;
diff --git a/e-util/e-tree-model.c b/e-util/e-tree-model.c
index 88c65f1..3d1531e 100644
--- a/e-util/e-tree-model.c
+++ b/e-util/e-tree-model.c
@@ -171,7 +171,6 @@ e_tree_model_class_init (ETreeModelClass *class)
 
        class->get_parent            = NULL;
        class->get_first_child       = NULL;
-       class->get_last_child        = NULL;
        class->get_next              = NULL;
        class->get_prev              = NULL;
 
@@ -467,27 +466,6 @@ e_tree_model_node_get_first_child (ETreeModel *tree_model,
 }
 
 /**
- * e_tree_model_node_get_last_child:
- * @tree_model:
- * @path:
- *
- *
- *
- * Return value:
- **/
-ETreePath
-e_tree_model_node_get_last_child (ETreeModel *tree_model,
-                                  ETreePath path)
-{
-       g_return_val_if_fail (E_IS_TREE_MODEL (tree_model), NULL);
-
-       if (ETM_CLASS (tree_model)->get_last_child)
-               return ETM_CLASS (tree_model)->get_last_child (tree_model, path);
-       else
-               return NULL;
-}
-
-/**
  * e_tree_model_node_get_next:
  * @tree_model:
  * @path:
diff --git a/e-util/e-tree-model.h b/e-util/e-tree-model.h
index 1c42b3d..d10c69e 100644
--- a/e-util/e-tree-model.h
+++ b/e-util/e-tree-model.h
@@ -77,8 +77,6 @@ struct _ETreeModelClass {
                                                 ETreePath path);
        ETreePath       (*get_first_child)      (ETreeModel *tree_model,
                                                 ETreePath path);
-       ETreePath       (*get_last_child)       (ETreeModel *tree_model,
-                                                ETreePath path);
        ETreePath       (*get_next)             (ETreeModel *tree_model,
                                                 ETreePath path);
        ETreePath       (*get_prev)             (ETreeModel *tree_model,
@@ -189,9 +187,6 @@ ETreePath   e_tree_model_node_get_parent    (ETreeModel *tree_model,
 ETreePath      e_tree_model_node_get_first_child
                                                (ETreeModel *tree_model,
                                                 ETreePath path);
-ETreePath      e_tree_model_node_get_last_child
-                                               (ETreeModel *tree_model,
-                                                ETreePath path);
 ETreePath      e_tree_model_node_get_next      (ETreeModel *tree_model,
                                                 ETreePath path);
 ETreePath      e_tree_model_node_get_prev      (ETreeModel *tree_model,


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