aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-tree-selection-model.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-20 02:44:39 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-20 02:57:32 +0800
commita6794091283aef8928130e70a8becf6c15afa77d (patch)
tree3e7121dbd72e311b5d7afa882926f0ee7fbb53a6 /e-util/e-tree-selection-model.c
parent4b41929f49d24edfe9c11995cee22df8edf3f553 (diff)
downloadgsoc2013-evolution-a6794091283aef8928130e70a8becf6c15afa77d.tar
gsoc2013-evolution-a6794091283aef8928130e70a8becf6c15afa77d.tar.gz
gsoc2013-evolution-a6794091283aef8928130e70a8becf6c15afa77d.tar.bz2
gsoc2013-evolution-a6794091283aef8928130e70a8becf6c15afa77d.tar.lz
gsoc2013-evolution-a6794091283aef8928130e70a8becf6c15afa77d.tar.xz
gsoc2013-evolution-a6794091283aef8928130e70a8becf6c15afa77d.tar.zst
gsoc2013-evolution-a6794091283aef8928130e70a8becf6c15afa77d.zip
Remove unused e_selection_model_invert_selection().
Diffstat (limited to 'e-util/e-tree-selection-model.c')
-rw-r--r--e-util/e-tree-selection-model.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/e-util/e-tree-selection-model.c b/e-util/e-tree-selection-model.c
index b78863045d..3ec676bf82 100644
--- a/e-util/e-tree-selection-model.c
+++ b/e-util/e-tree-selection-model.c
@@ -484,35 +484,6 @@ tree_selection_model_select_all (ESelectionModel *selection)
get_cursor_row (etsm), etsm->priv->cursor_col);
}
-static void
-tree_selection_model_invert_selection (ESelectionModel *selection)
-{
- ETreeSelectionModel *etsm = E_TREE_SELECTION_MODEL (selection);
- gint count;
- gint i;
-
- count = e_selection_model_row_count (selection);
-
- for (i = 0; i < count; i++) {
- ETreePath path;
-
- path = e_tree_table_adapter_node_at_row (etsm->priv->etta, i);
- if (path == NULL)
- continue;
-
- if (g_hash_table_contains (etsm->priv->paths, path))
- g_hash_table_remove (etsm->priv->paths, path);
- else
- g_hash_table_add (etsm->priv->paths, path);
- }
-
- etsm->priv->cursor_col = -1;
- etsm->priv->cursor_path = NULL;
- etsm->priv->start_path = NULL;
- e_selection_model_selection_changed (E_SELECTION_MODEL (etsm));
- e_selection_model_cursor_changed (E_SELECTION_MODEL (etsm), -1, -1);
-}
-
static gint
tree_selection_model_row_count (ESelectionModel *selection)
{
@@ -712,7 +683,6 @@ e_tree_selection_model_class_init (ETreeSelectionModelClass *class)
esm_class->clear = tree_selection_model_clear;
esm_class->selected_count = tree_selection_model_selected_count;
esm_class->select_all = tree_selection_model_select_all;
- esm_class->invert_selection = tree_selection_model_invert_selection;
esm_class->row_count = tree_selection_model_row_count;
esm_class->change_one_row = tree_selection_model_change_one_row;