From 08a40c8d17c10f5a0bb15c2c8c353476b4414b64 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Mon, 15 Aug 2005 22:40:58 +0000 Subject: [PATCH] * screen.c (use_display_format): Removed unused variable. --- src/ChangeLog | 1 + src/screen.c | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 38931c122..30282f497 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -17,6 +17,7 @@ * complete.c (fetch_hosts): Removed unused variable. * complete.c: Don't mix enums with ints. * tree.c: Likewise. + * screen.c (use_display_format): Removed unused variable. 2005-08-15 Jindrich Makovicka diff --git a/src/screen.c b/src/screen.c index 3b6975732..f7d16b466 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1329,7 +1329,6 @@ use_display_format (WPanel *panel, const char *format, char **error, int isstatu int expand_top = 0; /* Max used element in expand */ int usable_columns; /* Usable columns in the panel */ int total_cols = 0; - const char *expand_list [MAX_EXPAND]; /* Expand at most 4 fields. */ int i; format_e *darr, *home; @@ -1348,16 +1347,11 @@ use_display_format (WPanel *panel, const char *format, char **error, int isstatu ? 1 : (panel->split+1))) - (!isstatus && panel->split); - /* Clean expand list */ - for (i = 0; i < MAX_EXPAND; i++) - expand_list [i] = '\0'; - - /* Look for the expandable fields and set field_len based on the requested field len */ for (darr = home; darr && expand_top < MAX_EXPAND; darr = darr->next){ darr->field_len = darr->requested_field_len; if (darr->expand) - expand_list [expand_top++] = darr->id; + expand_top++; } /* If we used more columns than the available columns, adjust that */