From: Max Kellermann Date: Sat, 10 Oct 2009 16:46:04 +0000 (+0200) Subject: list_window: removed redundant range_base checks X-Git-Tag: release-0.16~127 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=82bac86b91b91eb650079b54acc550bc5d8cd2d7;p=ncmpc.git list_window: removed redundant range_base checks No need to check range_base in list_window_check_selected(). --- diff --git a/src/list_window.c b/src/list_window.c index c78ff6e..2111edc 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -90,11 +90,6 @@ list_window_check_selected(struct list_window *lw) list_window_validate_index(lw, lw->selected_end); lw->range_base = list_window_validate_index(lw, lw->range_base); - - if(lw->range_base > lw->selected_end) - lw->selected_end = lw->selected; - if(lw->range_base < lw->selected_start) - lw->selected_start = lw->selected; } else {