[evolution] Remove e_tree_model_has_change_pending().



commit e205921fd969b1c5a1fb464b29bb818363724297
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Jun 15 12:19:16 2013 -0400

    Remove e_tree_model_has_change_pending().
    
    ETreeMemory does not implement this, so it's always FALSE.

 .../evolution-util/evolution-util-sections.txt     |    1 -
 e-util/e-tree-model.c                              |   21 --------------------
 e-util/e-tree-model.h                              |    3 --
 e-util/e-tree-table-adapter.c                      |    9 --------
 4 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index 4843312..e39ec99 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4354,7 +4354,6 @@ e_tree_model_has_save_id
 e_tree_model_get_save_id
 e_tree_model_has_get_node_by_id
 e_tree_model_get_node_by_id
-e_tree_model_has_change_pending
 e_tree_model_sort_value_at
 e_tree_model_value_at
 e_tree_model_set_value_at
diff --git a/e-util/e-tree-model.c b/e-util/e-tree-model.c
index abea032..d866da8 100644
--- a/e-util/e-tree-model.c
+++ b/e-util/e-tree-model.c
@@ -593,27 +593,6 @@ e_tree_model_get_node_by_id (ETreeModel *tree_model,
 }
 
 /**
- * e_tree_model_has_change_pending
- * @tree_model: The ETreeModel.
- *
- * XXX docs here.
- *
- * return values: Whether this tree has valid save id data.
- */
-gboolean
-e_tree_model_has_change_pending (ETreeModel *tree_model)
-{
-       ETreeModelClass *class;
-
-       g_return_val_if_fail (E_IS_TREE_MODEL (tree_model), FALSE);
-
-       class = E_TREE_MODEL_GET_CLASS (tree_model);
-       g_return_val_if_fail (class->has_change_pending != NULL, FALSE);
-
-       return class->has_change_pending (tree_model);
-}
-
-/**
  * e_tree_model_sort_value_at:
  * @tree_model: The ETreeModel.
  * @path: The ETreePath to the node we're getting the data from.
diff --git a/e-util/e-tree-model.h b/e-util/e-tree-model.h
index 23e9bb7..330bcd9 100644
--- a/e-util/e-tree-model.h
+++ b/e-util/e-tree-model.h
@@ -104,8 +104,6 @@ struct _ETreeModelClass {
        ETreePath       (*get_node_by_id)       (ETreeModel *tree_model,
                                                 const gchar *save_id);
 
-       gboolean        (*has_change_pending)   (ETreeModel *tree_model);
-
        /*
         * ETable analogs
         */
@@ -197,7 +195,6 @@ gchar *             e_tree_model_get_save_id        (ETreeModel *tree_model,
 gboolean       e_tree_model_has_get_node_by_id (ETreeModel *tree_model);
 ETreePath      e_tree_model_get_node_by_id     (ETreeModel *tree_model,
                                                 const gchar *save_id);
-gboolean       e_tree_model_has_change_pending (ETreeModel *tree_model);
 gpointer       e_tree_model_sort_value_at      (ETreeModel *tree_model,
                                                 ETreePath path,
                                                 gint col);
diff --git a/e-util/e-tree-table-adapter.c b/e-util/e-tree-table-adapter.c
index 161ce2b..6a17d66 100644
--- a/e-util/e-tree-table-adapter.c
+++ b/e-util/e-tree-table-adapter.c
@@ -624,14 +624,6 @@ etta_get_save_id (ETableModel *etm,
        return e_tree_model_get_save_id (etta->priv->source, get_path (etta, row));
 }
 
-static gboolean
-etta_has_change_pending (ETableModel *etm)
-{
-       ETreeTableAdapter *etta = (ETreeTableAdapter *) etm;
-
-       return e_tree_model_has_change_pending (etta->priv->source);
-}
-
 static gint
 etta_row_count (ETableModel *etm)
 {
@@ -762,7 +754,6 @@ etta_class_init (ETreeTableAdapterClass *class)
        table_model_class->has_save_id = etta_has_save_id;
        table_model_class->get_save_id = etta_get_save_id;
 
-       table_model_class->has_change_pending = etta_has_change_pending;
        table_model_class->duplicate_value = etta_duplicate_value;
        table_model_class->free_value = etta_free_value;
        table_model_class->initialize_value = etta_initialize_value;


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