mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
* screen.c (use_display_format): Removed unused variable.
This commit is contained in:
parent
5c7a219b36
commit
08a40c8d17
@ -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 <makovick@kmlinux.fjfi.cvut.cz>
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user