From: Ricardo Mones Date: Sat, 20 Sep 2014 10:41:28 +0000 (+0200) Subject: Remove unreachable code X-Git-Tag: 3.11.0~13 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=8090f02e4d5c41be4325f0a13d6b0d98ca03684b Remove unreachable code Since this is within the switch case where selection_mode is GTK_SELECTION_BROWSE the if is always executed and the else path is never taken. --- diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c index b2807586e..7980b8a24 100644 --- a/src/gtk/gtkcmclist.c +++ b/src/gtk/gtkcmclist.c @@ -7035,16 +7035,8 @@ scroll_vertical (GtkCMCList *clist, move_focus_row (clist, scroll_type, position); if (old_focus_row != clist->focus_row) - { - if (clist->selection_mode == GTK_SELECTION_BROWSE) - g_signal_emit (G_OBJECT (clist), clist_signals[UNSELECT_ROW], 0, - old_focus_row, -1, NULL); - else if (!GTK_CMCLIST_ADD_MODE(clist)) - { - gtk_cmclist_unselect_all (clist); - clist->undo_anchor = old_focus_row; - } - } + g_signal_emit (G_OBJECT (clist), clist_signals[UNSELECT_ROW], 0, + old_focus_row, -1, NULL); switch (gtk_cmclist_row_is_visible (clist, clist->focus_row)) {