From f140efa9c3e72526fda6bc479e4ef2920b85ce14 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Apr 2009 09:14:49 +0200 Subject: [PATCH] list_window: removed the unused "xoffset" variable --- src/list_window.c | 3 --- src/list_window.h | 1 - 2 files changed, 4 deletions(-) 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; -- 2.30.2