aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-15 23:16:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-16 10:50:05 +0800
commitcae22334fa6bc395ccc421b09e0af94c89297c41 (patch)
tree84881f467c0448db044d8bb3533e044a7152bb2b /filter
parentd37784ed3db20fd74ea4b8d9fdfe58518370cea2 (diff)
downloadgsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.gz
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.bz2
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.lz
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.xz
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.zst
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.zip
Remove dead assignments found by clang.
Diffstat (limited to 'filter')
-rw-r--r--filter/e-filter-option.c1
-rw-r--r--filter/e-rule-editor.c9
2 files changed, 2 insertions, 8 deletions
diff --git a/filter/e-filter-option.c b/filter/e-filter-option.c
index 79899bce80..a9e99e06ff 100644
--- a/filter/e-filter-option.c
+++ b/filter/e-filter-option.c
@@ -306,7 +306,6 @@ filter_option_get_widget (EFilterElement *element)
old_ops = option->options;
old_cur = option->current;
- l = old_ops;
/* start with an empty list */
option->current = NULL;
diff --git a/filter/e-rule-editor.c b/filter/e-rule-editor.c
index 5fdb7dc0a8..f1bf0e26a7 100644
--- a/filter/e-rule-editor.c
+++ b/filter/e-rule-editor.c
@@ -513,7 +513,7 @@ static void
rule_bottom (GtkWidget *widget, ERuleEditor *editor)
{
gint pos;
- gint index = -1, count = 0;
+ gint count = 0;
EFilterRule *rule = NULL;
update_selected_rule(editor);
@@ -521,11 +521,8 @@ rule_bottom (GtkWidget *widget, ERuleEditor *editor)
pos = e_rule_context_get_rank_rule (
editor->context, editor->current, editor->source);
/* There's probably a better/faster way to get the count of the list here */
- while ((rule = e_rule_context_next_rule (editor->context, rule, editor->source))) {
- if (rule == editor->current)
- index = count;
+ while ((rule = e_rule_context_next_rule (editor->context, rule, editor->source)))
count++;
- }
count--;
if (pos >= 0)
rule_move (editor, pos, count);
@@ -777,14 +774,12 @@ rule_able_toggled (GtkCellRendererToggle *renderer,
gpointer user_data)
{
GtkWidget *table = user_data;
- GtkTreeSelection *selection;
GtkTreeModel *model;
GtkTreePath *path;
GtkTreeIter iter;
path = gtk_tree_path_new_from_string (path_string);
model = gtk_tree_view_get_model (GTK_TREE_VIEW (table));
- selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (table));
if (gtk_tree_model_get_iter (model, &iter, path)) {
EFilterRule *rule = NULL;