Ticket #3547: mc-3547-cleanup-unused-option_edit_-_extreme-variables.patch

File mc-3547-cleanup-unused-option_edit_-_extreme-variables.patch, 1.9 KB (added by and, 8 years ago)
  • src/editor/edit-impl.h

    From 9acb34297a508fa1c3a4acc7d80d2177bcbfbe3f Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Fri, 1 Jan 2016 22:06:01 +0000
    Subject: [PATCH] cleanup unused option_edit_*_extreme variables
    
    one-way variables as source for macro definitions
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/editor/edit-impl.h | 13 ++++---------
     src/editor/edit.c      |  4 ----
     2 files changed, 4 insertions(+), 13 deletions(-)
    
    diff --git a/src/editor/edit-impl.h b/src/editor/edit-impl.h
    index 3d7fbe6..48adad9 100644
    a b  
    3434#define EDIT_TEXT_HORIZONTAL_OFFSET 0 
    3535#define EDIT_TEXT_VERTICAL_OFFSET   0 
    3636 
    37 #define EDIT_RIGHT_EXTREME option_edit_right_extreme 
    38 #define EDIT_LEFT_EXTREME option_edit_left_extreme 
    39 #define EDIT_TOP_EXTREME option_edit_top_extreme 
    40 #define EDIT_BOTTOM_EXTREME option_edit_bottom_extreme 
     37#define EDIT_RIGHT_EXTREME 0 
     38#define EDIT_LEFT_EXTREME 0 
     39#define EDIT_TOP_EXTREME 0 
     40#define EDIT_BOTTOM_EXTREME 0 
    4141 
    4242/* Initial size of the undo stack, in bytes */ 
    4343#define START_STACK_SIZE 32 
    extern int option_line_state_width; 
    132132extern int option_max_undo; 
    133133extern int option_auto_syntax; 
    134134 
    135 extern int option_edit_right_extreme; 
    136 extern int option_edit_left_extreme; 
    137 extern int option_edit_top_extreme; 
    138 extern int option_edit_bottom_extreme; 
    139  
    140135extern gboolean search_create_bookmark; 
    141136 
    142137extern char *edit_window_state_char; 
  • src/editor/edit.c

    diff --git a/src/editor/edit.c b/src/editor/edit.c
    index e69a9d4..f86ffed 100644
    a b int option_line_state_width = 0; 
    9191gboolean option_cursor_after_inserted_block = FALSE; 
    9292int option_state_full_filename = 0; 
    9393 
    94 int option_edit_right_extreme = 0; 
    95 int option_edit_left_extreme = 0; 
    96 int option_edit_top_extreme = 0; 
    97 int option_edit_bottom_extreme = 0; 
    9894int enable_show_tabs_tws = 1; 
    9995int option_check_nl_at_eof = 0; 
    10096int option_group_undo = 0;