[evolution] Remove e_tree_view_to_model_row().



commit 794bf75c9eeb0cc91837ea3ccff92792ecae88a6
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Jun 20 15:02:56 2013 -0400

    Remove e_tree_view_to_model_row().
    
    Now that ETree no longer has an ESorter, this function is silly.

 .../evolution-util/evolution-util-sections.txt     |    1 -
 e-util/e-tree.c                                    |   11 -----------
 e-util/e-tree.h                                    |    2 --
 3 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index eede4cb..67b961e 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4189,7 +4189,6 @@ e_tree_show_cursor_after_reflow
 e_tree_set_cursor
 e_tree_get_cursor
 e_tree_path_foreach
-e_tree_view_to_model_row
 e_tree_get_cell_at
 e_tree_get_cell_geometry
 e_tree_get_model
diff --git a/e-util/e-tree.c b/e-util/e-tree.c
index 2aea989..2b95b6f 100644
--- a/e-util/e-tree.c
+++ b/e-util/e-tree.c
@@ -972,7 +972,6 @@ item_key_press (ETableItem *eti,
                        row_local = e_table_model_row_count (
                                E_TABLE_MODEL (tree->priv->etta)) - 1;
 
-               row_local = e_tree_view_to_model_row (tree, row_local);
                col_local = e_selection_model_cursor_col (
                        E_SELECTION_MODEL (tree->priv->selection));
                e_selection_model_select_as_key_press (
@@ -991,7 +990,6 @@ item_key_press (ETableItem *eti,
                        row_local = e_table_model_row_count (
                                E_TABLE_MODEL (tree->priv->etta)) - 1;
 
-               row_local = e_tree_view_to_model_row (tree, row_local);
                col_local = e_selection_model_cursor_col (
                        E_SELECTION_MODEL (tree->priv->selection));
                e_selection_model_select_as_key_press (
@@ -2042,15 +2040,6 @@ et_set_property (GObject *object,
        }
 }
 
-gint
-e_tree_view_to_model_row (ETree *tree,
-                          gint view_row)
-{
-       g_return_val_if_fail (E_IS_TREE (tree), -1);
-
-       return view_row;
-}
-
 /**
  * e_tree_get_model:
  * @et: the ETree
diff --git a/e-util/e-tree.h b/e-util/e-tree.h
index 98b292a..a443c94 100644
--- a/e-util/e-tree.h
+++ b/e-util/e-tree.h
@@ -214,8 +214,6 @@ ETreePath   e_tree_get_cursor               (ETree *tree);
 void           e_tree_path_foreach             (ETree *tree,
                                                 ETreeForeachFunc callback,
                                                 gpointer closure);
-gint           e_tree_view_to_model_row        (ETree *tree,
-                                                gint view_row);
 void           e_tree_get_cell_at              (ETree *tree,
                                                 gint x,
                                                 gint y,


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