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
|
|
34 | 34 | #define EDIT_TEXT_HORIZONTAL_OFFSET 0 |
35 | 35 | #define EDIT_TEXT_VERTICAL_OFFSET 0 |
36 | 36 | |
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 |
41 | 41 | |
42 | 42 | /* Initial size of the undo stack, in bytes */ |
43 | 43 | #define START_STACK_SIZE 32 |
… |
… |
extern int option_line_state_width; |
132 | 132 | extern int option_max_undo; |
133 | 133 | extern int option_auto_syntax; |
134 | 134 | |
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 | | |
140 | 135 | extern gboolean search_create_bookmark; |
141 | 136 | |
142 | 137 | extern char *edit_window_state_char; |
diff --git a/src/editor/edit.c b/src/editor/edit.c
index e69a9d4..f86ffed 100644
a
|
b
|
int option_line_state_width = 0; |
91 | 91 | gboolean option_cursor_after_inserted_block = FALSE; |
92 | 92 | int option_state_full_filename = 0; |
93 | 93 | |
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; |
98 | 94 | int enable_show_tabs_tws = 1; |
99 | 95 | int option_check_nl_at_eof = 0; |
100 | 96 | int option_group_undo = 0; |