commit 8090f02e4d5c41be4325f0a13d6b0d98ca03684b
parent eba128c4f5df2339c2bb3d3fce9df990ce317d73
Author: Ricardo Mones <ricardo@mones.org>
Date: Sat, 20 Sep 2014 12:41:28 +0200
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.
Diffstat:
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git 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))
{