From 2627da4b735a8f53728b9f83ff76106b553dc78e Mon Sep 17 00:00:00 2001 From: Mooffie Date: Fri, 13 Nov 2015 15:41:10 +0200 Subject: [PATCH] panel.h: remove unused variable declaration. Signed-off-by: Andrew Borodin --- src/filemanager/panel.c | 94 ++++++++++++++++++++++++------------------------- src/filemanager/panel.h | 2 -- 2 files changed, 47 insertions(+), 49 deletions(-) diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c index 10a844c7e..8f2f55349 100644 --- a/src/filemanager/panel.c +++ b/src/filemanager/panel.c @@ -107,8 +107,54 @@ static const char *string_marked (file_entry_t *, int); static const char *string_space (file_entry_t *, int); static const char *string_dot (file_entry_t *, int); +mc_fhl_t *mc_filehighlight = NULL; + +/*** file scope macro definitions ****************************************************************/ + +#define NORMAL 0 +#define SELECTED 1 +#define MARKED 2 +#define MARKED_SELECTED 3 +#define STATUS 5 + +/*** file scope type declarations ****************************************************************/ + +typedef enum +{ + MARK_DONT_MOVE = 0, + MARK_DOWN = 1, + MARK_FORCE_DOWN = 2, + MARK_FORCE_UP = 3 +} mark_act_t; + +/* + * This describes a format item. The parse_display_format routine parses + * the user specified format and creates a linked list of format_e structures. + */ +typedef struct format_e +{ + struct format_e *next; + int requested_field_len; + int field_len; + align_crt_t just_mode; + gboolean expand; + const char *(*string_fn) (file_entry_t *, int len); + char *title; + const char *id; +} format_e; + +/* File name scroll states */ +typedef enum +{ + FILENAME_NOSCROLL = 1, + FILENAME_SCROLL_LEFT = 2, + FILENAME_SCROLL_RIGHT = 4 +} filename_scroll_flag_t; + +/*** file scope variables ************************************************************************/ + /* *INDENT-OFF* */ -panel_field_t panel_fields[] = { +static panel_field_t panel_fields[] = { { "unsorted", 12, TRUE, J_LEFT_FIT, /* TRANSLATORS: one single character to represent 'unsorted' sort mode */ @@ -308,52 +354,6 @@ panel_field_t panel_fields[] = { }; /* *INDENT-ON* */ -mc_fhl_t *mc_filehighlight = NULL; - -/*** file scope macro definitions ****************************************************************/ - -#define NORMAL 0 -#define SELECTED 1 -#define MARKED 2 -#define MARKED_SELECTED 3 -#define STATUS 5 - -/*** file scope type declarations ****************************************************************/ - -typedef enum -{ - MARK_DONT_MOVE = 0, - MARK_DOWN = 1, - MARK_FORCE_DOWN = 2, - MARK_FORCE_UP = 3 -} mark_act_t; - -/* - * This describes a format item. The parse_display_format routine parses - * the user specified format and creates a linked list of format_e structures. - */ -typedef struct format_e -{ - struct format_e *next; - int requested_field_len; - int field_len; - align_crt_t just_mode; - gboolean expand; - const char *(*string_fn) (file_entry_t *, int len); - char *title; - const char *id; -} format_e; - -/* File name scroll states */ -typedef enum -{ - FILENAME_NOSCROLL = 1, - FILENAME_SCROLL_LEFT = 2, - FILENAME_SCROLL_RIGHT = 4 -} filename_scroll_flag_t; - -/*** file scope variables ************************************************************************/ - static char *panel_sort_up_sign = NULL; static char *panel_sort_down_sign = NULL; diff --git a/src/filemanager/panel.h b/src/filemanager/panel.h index 6ebd1edfe..4f3cd0d19 100644 --- a/src/filemanager/panel.h +++ b/src/filemanager/panel.h @@ -146,8 +146,6 @@ typedef struct extern panelized_panel_t panelized_panel; -extern panel_field_t panel_fields[]; - extern hook_t *select_file_hook; extern mc_fhl_t *mc_filehighlight; -- 2.11.4.GIT