aboutsummaryrefslogtreecommitdiffstats
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
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().
-rw-r--r--doc/reference/evolution-util/evolution-util-sections.txt1
-rw-r--r--e-util/e-selection-model-array.c20
-rw-r--r--e-util/e-selection-model.c20
-rw-r--r--e-util/e-selection-model.h3
-rw-r--r--e-util/e-tree-selection-model.c30
5 files changed, 0 insertions, 74 deletions
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt
index f5e58cb782..4a4835c338 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -2967,7 +2967,6 @@ e_selection_model_foreach
e_selection_model_clear
e_selection_model_selected_count
e_selection_model_select_all
-e_selection_model_invert_selection
e_selection_model_row_count
e_selection_model_change_one_row
e_selection_model_change_cursor
diff --git a/e-util/e-selection-model-array.c b/e-util/e-selection-model-array.c
index 76515aa27b..fbfb612a41 100644
--- a/e-util/e-selection-model-array.c
+++ b/e-util/e-selection-model-array.c
@@ -310,25 +310,6 @@ esma_select_all (ESelectionModel *selection)
e_selection_model_cursor_changed (E_SELECTION_MODEL (esma), 0, 0);
}
-static void
-esma_invert_selection (ESelectionModel *selection)
-{
- ESelectionModelArray *esma = E_SELECTION_MODEL_ARRAY (selection);
-
- e_selection_model_array_confirm_row_count (esma);
-
- e_bit_array_invert_selection (esma->eba);
-
- esma->cursor_col = -1;
- esma->cursor_row = -1;
- esma->cursor_row_sorted = -1;
- esma->selection_start_row = 0;
- esma->selected_row = -1;
- esma->selected_range_end = -1;
- e_selection_model_selection_changed (E_SELECTION_MODEL (esma));
- e_selection_model_cursor_changed (E_SELECTION_MODEL (esma), -1, -1);
-}
-
static gint
esma_row_count (ESelectionModel *selection)
{
@@ -562,7 +543,6 @@ e_selection_model_array_class_init (ESelectionModelArrayClass *class)
esm_class->clear = esma_clear;
esm_class->selected_count = esma_selected_count;
esm_class->select_all = esma_select_all;
- esm_class->invert_selection = esma_invert_selection;
esm_class->row_count = esma_row_count;
esm_class->change_one_row = esma_change_one_row;
diff --git a/e-util/e-selection-model.c b/e-util/e-selection-model.c
index 698dcfe9fb..31d6657230 100644
--- a/e-util/e-selection-model.c
+++ b/e-util/e-selection-model.c
@@ -341,26 +341,6 @@ e_selection_model_select_all (ESelectionModel *model)
class->select_all (model);
}
-/**
- * e_selection_model_invert_selection
- * @model: #ESelectionModel to invert
- *
- * This routine inverts all the rows in the given
- * #ESelectionModel.
- */
-void
-e_selection_model_invert_selection (ESelectionModel *model)
-{
- ESelectionModelClass *class;
-
- g_return_if_fail (E_IS_SELECTION_MODEL (model));
-
- class = E_SELECTION_MODEL_GET_CLASS (model);
- g_return_if_fail (class->invert_selection != NULL);
-
- class->invert_selection (model);
-}
-
gint
e_selection_model_row_count (ESelectionModel *model)
{
diff --git a/e-util/e-selection-model.h b/e-util/e-selection-model.h
index ccfd25b8d8..c638b4fb2f 100644
--- a/e-util/e-selection-model.h
+++ b/e-util/e-selection-model.h
@@ -86,7 +86,6 @@ struct _ESelectionModelClass {
void (*clear) (ESelectionModel *model);
gint (*selected_count) (ESelectionModel *model);
void (*select_all) (ESelectionModel *model);
- void (*invert_selection) (ESelectionModel *model);
gint (*row_count) (ESelectionModel *model);
/* Protected virtual methods. */
@@ -156,8 +155,6 @@ void e_selection_model_clear (ESelectionModel *model);
gint e_selection_model_selected_count
(ESelectionModel *model);
void e_selection_model_select_all (ESelectionModel *model);
-void e_selection_model_invert_selection
- (ESelectionModel *model);
gint e_selection_model_row_count (ESelectionModel *model);
/* Private virtual Functions */
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;