Skip to content

Commit c33a431

Browse files
committed
kconfig: lxdialog: remove unused dialog colors
Remove inputbox_order, searchbox, searchbox_title, searchbox_border because they are initialized, but not used anywhere. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 137bb8b commit c33a431

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

scripts/kconfig/lxdialog/dialog.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ struct dialog_info {
9191
struct dialog_color button_label_active;
9292
struct dialog_color button_label_inactive;
9393
struct dialog_color inputbox;
94-
struct dialog_color inputbox_border;
95-
struct dialog_color searchbox;
96-
struct dialog_color searchbox_title;
97-
struct dialog_color searchbox_border;
9894
struct dialog_color position_indicator;
9995
struct dialog_color menubox;
10096
struct dialog_color menubox_border;

scripts/kconfig/lxdialog/util.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ static void set_mono_theme(void)
2929
dlg.button_label_active.atr = A_REVERSE;
3030
dlg.button_label_inactive.atr = A_NORMAL;
3131
dlg.inputbox.atr = A_NORMAL;
32-
dlg.inputbox_border.atr = A_NORMAL;
33-
dlg.searchbox.atr = A_NORMAL;
34-
dlg.searchbox_title.atr = A_BOLD;
35-
dlg.searchbox_border.atr = A_NORMAL;
3632
dlg.position_indicator.atr = A_BOLD;
3733
dlg.menubox.atr = A_NORMAL;
3834
dlg.menubox_border.atr = A_NORMAL;
@@ -69,10 +65,6 @@ static void set_classic_theme(void)
6965
DLG_COLOR(button_label_active, COLOR_YELLOW, COLOR_BLUE, true);
7066
DLG_COLOR(button_label_inactive, COLOR_BLACK, COLOR_WHITE, true);
7167
DLG_COLOR(inputbox, COLOR_BLACK, COLOR_WHITE, false);
72-
DLG_COLOR(inputbox_border, COLOR_BLACK, COLOR_WHITE, false);
73-
DLG_COLOR(searchbox, COLOR_BLACK, COLOR_WHITE, false);
74-
DLG_COLOR(searchbox_title, COLOR_YELLOW, COLOR_WHITE, true);
75-
DLG_COLOR(searchbox_border, COLOR_WHITE, COLOR_WHITE, true);
7668
DLG_COLOR(position_indicator, COLOR_YELLOW, COLOR_WHITE, true);
7769
DLG_COLOR(menubox, COLOR_BLACK, COLOR_WHITE, false);
7870
DLG_COLOR(menubox_border, COLOR_WHITE, COLOR_WHITE, true);
@@ -104,11 +96,6 @@ static void set_blackbg_theme(void)
10496
DLG_COLOR(button_label_inactive, COLOR_WHITE, COLOR_BLACK, false);
10597

10698
DLG_COLOR(inputbox, COLOR_YELLOW, COLOR_BLACK, false);
107-
DLG_COLOR(inputbox_border, COLOR_YELLOW, COLOR_BLACK, false);
108-
109-
DLG_COLOR(searchbox, COLOR_YELLOW, COLOR_BLACK, false);
110-
DLG_COLOR(searchbox_title, COLOR_YELLOW, COLOR_BLACK, true);
111-
DLG_COLOR(searchbox_border, COLOR_BLACK, COLOR_BLACK, true);
11299

113100
DLG_COLOR(position_indicator, COLOR_RED, COLOR_BLACK, false);
114101

@@ -136,7 +123,6 @@ static void set_bluetitle_theme(void)
136123
DLG_COLOR(title, COLOR_BLUE, COLOR_WHITE, true);
137124
DLG_COLOR(button_key_active, COLOR_YELLOW, COLOR_BLUE, true);
138125
DLG_COLOR(button_label_active, COLOR_WHITE, COLOR_BLUE, true);
139-
DLG_COLOR(searchbox_title, COLOR_BLUE, COLOR_WHITE, true);
140126
DLG_COLOR(position_indicator, COLOR_BLUE, COLOR_WHITE, true);
141127
DLG_COLOR(tag, COLOR_BLUE, COLOR_WHITE, true);
142128
DLG_COLOR(tag_key, COLOR_BLUE, COLOR_WHITE, true);
@@ -189,10 +175,6 @@ static void init_dialog_colors(void)
189175
init_one_color(&dlg.button_label_active);
190176
init_one_color(&dlg.button_label_inactive);
191177
init_one_color(&dlg.inputbox);
192-
init_one_color(&dlg.inputbox_border);
193-
init_one_color(&dlg.searchbox);
194-
init_one_color(&dlg.searchbox_title);
195-
init_one_color(&dlg.searchbox_border);
196178
init_one_color(&dlg.position_indicator);
197179
init_one_color(&dlg.menubox);
198180
init_one_color(&dlg.menubox_border);

0 commit comments

Comments
 (0)