From: Max Kellermann Date: Fri, 10 Apr 2009 07:14:49 +0000 (+0200) Subject: list_window: removed the unused "xoffset" variable X-Git-Tag: release-0.14~20 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f140efa9c3e72526fda6bc479e4ef2920b85ce14;p=ncmpc.git list_window: removed the unused "xoffset" variable --- diff --git a/src/list_window.c b/src/list_window.c index e02d92b..e14d6cf 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -64,7 +64,6 @@ list_window_reset(struct list_window *lw) lw->selected_end = 0; lw->range_selection = false; lw->range_base = 0; - lw->xoffset = 0; lw->start = 0; } @@ -197,14 +196,12 @@ list_window_bottom(struct list_window *lw, unsigned length) static void list_window_first(struct list_window *lw) { - lw->xoffset = 0; list_window_set_selected(lw, 0); } static void list_window_last(struct list_window *lw, unsigned length) { - lw->xoffset = 0; if (length > 0) list_window_set_selected(lw, length - 1); else diff --git a/src/list_window.h b/src/list_window.h index 0d1c0de..20ebfc8 100644 --- a/src/list_window.h +++ b/src/list_window.h @@ -46,7 +46,6 @@ typedef struct list_window { unsigned selected_end; /* for range selection, last selected item */ unsigned range_base; /* represents the base item. */ bool range_selection; /* range selection activated */ - unsigned xoffset; bool hide_cursor; } list_window_t;