From 7b96b56010e324dc7fe63a33b7ccd1db3679a462 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Thu, 2 Oct 2014 10:36:50 +0400 Subject: [PATCH] (format_file): remove unused arguments. Signed-off-by: Andrew Borodin --- src/filemanager/panel.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c index a69a97e5d..87f7b59ae 100644 --- a/src/filemanager/panel.c +++ b/src/filemanager/panel.c @@ -771,17 +771,14 @@ file_compute_color (int attr, file_entry_t * fe) /** Formats the file number file_index of panel in the buffer dest */ static filename_scroll_flag_t -format_file (char *dest, int limit, WPanel * panel, int file_index, int width, int attr, - gboolean isstatus, int *field_length) +format_file (WPanel * panel, int file_index, int width, int attr, gboolean isstatus, + int *field_length) { int color, length = 0, empty_line; format_e *format, *home; file_entry_t *fe; filename_scroll_flag_t res = FILENAME_NOSCROLL; - (void) dest; - (void) limit; - empty_line = (file_index >= panel->dir.len); home = isstatus ? panel->status_format : panel->format; fe = &panel->dir.list[file_index]; @@ -893,7 +890,6 @@ repaint_file (WPanel * panel, int file_index, gboolean mv, int attr, gboolean is int second_column = 0; int width; int offset = 0; - char buffer[BUF_MEDIUM]; filename_scroll_flag_t ret_frm; int ypos = 0; gboolean panel_is_split = !isstatus && panel->split; @@ -930,7 +926,7 @@ repaint_file (WPanel * panel, int file_index, gboolean mv, int attr, gboolean is widget_move (w, ypos, offset + 1); } - ret_frm = format_file (buffer, sizeof (buffer), panel, file_index, width, attr, isstatus, &fln); + ret_frm = format_file (panel, file_index, width, attr, isstatus, &fln); if (panel_is_split) {