1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[menu] Removed commmented code

This commit is contained in:
Witold Filipczyk 2022-03-19 10:04:38 +01:00
parent 533e688ab1
commit afa50fe6ae

View File

@ -710,9 +710,6 @@ draw_menu_right_text_node(struct terminal *term, char *text, int len,
static void
display_menu(struct terminal *term, struct menu *menu)
{
// struct color_pair *normal_color = get_bfu_color(term, "menu.normal");
// struct color_pair *selected_color = get_bfu_color(term, "menu.selected");
// struct color_pair *frame_color = get_bfu_color(term, "menu.frame");
unsigned int normal_color_node = get_bfu_color_node(term, "menu.normal");
unsigned int selected_color_node = get_bfu_color_node(term, "menu.selected");
unsigned int frame_color_node = get_bfu_color_node(term, "menu.frame");
@ -750,7 +747,6 @@ display_menu(struct terminal *term, struct menu *menu)
for (p = menu->first;
p < menu->size && p < menu->first + menu_height;
p++, box.y++) {
// struct color_pair *color = normal_color;
unsigned int color_node = normal_color_node;
struct menu_item *mi = &menu->items[p];
int selected = (p == menu->selected);
@ -814,11 +810,6 @@ display_menu(struct terminal *term, struct menu *menu)
#ifdef CONFIG_DEBUG
/* Help to detect action + right text. --Zas */
if (mi_has_right_text(mi)) {
// if (color == selected_color)
// color = normal_color;
// else
// color = selected_color;
if (color_node == selected_color_node)
color_node = normal_color_node;
else