From 707cd9f789dfc7d49c95eb7cf54cb051912a1e99 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Sep 2008 17:42:57 +0200 Subject: [PATCH] list_window: removed property "repaint" The property "repaint" is never read, since all callers repaint the list window on demand. --- src/list_window.c | 4 ---- src/list_window.h | 1 - src/screen_utils.c | 4 +--- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/list_window.c b/src/list_window.c index e69f6ac..82df135 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -92,8 +92,6 @@ list_window_center(struct list_window *lw, unsigned rows, unsigned n) else lw->start = 0; } - - lw->repaint = 1; } void @@ -303,7 +301,6 @@ list_window_cmd(struct list_window *lw, unsigned rows, command_t cmd) return 0; } - lw->repaint = 1; return 1; } @@ -353,7 +350,6 @@ list_window_scroll_cmd(struct list_window *lw, unsigned rows, command_t cmd) return 0; } - lw->repaint = 1; return 1; } diff --git a/src/list_window.h b/src/list_window.h index 9a348a2..c85bc75 100644 --- a/src/list_window.h +++ b/src/list_window.h @@ -22,7 +22,6 @@ typedef struct list_window { unsigned start; unsigned selected; unsigned xoffset; - int repaint; int flags; } list_window_t; diff --git a/src/screen_utils.c b/src/screen_utils.c index 6ee1eba..6029596 100644 --- a/src/screen_utils.c +++ b/src/screen_utils.c @@ -198,9 +198,7 @@ screen_find(screen_t *screen, screen->findbuf, options.find_wrap); - if (retval == 0) - lw->repaint = 1; - else { + if (retval != 0) { screen_status_printf(_("Unable to find \'%s\'"), screen->findbuf); screen_bell(); } -- 2.30.2