From cb35bfe0b92710e0c5be20bf09f3f8b8fcb5f9b2 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 19 Mar 2022 10:07:54 +0100 Subject: [PATCH] [checkbox] Removed commented code --- src/bfu/checkbox.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/bfu/checkbox.c b/src/bfu/checkbox.c index c492a304..500881e4 100644 --- a/src/bfu/checkbox.c +++ b/src/bfu/checkbox.c @@ -50,10 +50,6 @@ dlg_format_checkbox(struct dialog_data *dlg_data, if (text && *text) { if (rw) *rw -= CHECKBOX_LS; -// dlg_format_text_do(dlg_data, text, x + CHECKBOX_LS, y, -// w - CHECKBOX_LS, rw, -// get_bfu_color(term, "dialog.checkbox-label"), -// align, format_only); dlg_format_text_do_node(dlg_data, text, x + CHECKBOX_LS, y, w - CHECKBOX_LS, rw, get_bfu_color_node(term, "dialog.checkbox-label"), @@ -67,20 +63,16 @@ static widget_handler_status_T display_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data) { struct terminal *term = dlg_data->win->term; -// struct color_pair *color; unsigned int color_node; const char *text; struct el_box *pos = &widget_data->box; int selected = is_selected_widget(dlg_data, widget_data); if (selected) { -// color = get_bfu_color(term, "dialog.checkbox-selected"); color_node = get_bfu_color_node(term, "dialog.checkbox-selected"); } else { -// color = get_bfu_color(term, "dialog.checkbox"); color_node = get_bfu_color_node(term, "dialog.checkbox"); } -// if (!color) return EVENT_PROCESSED; if (!color_node) return EVENT_PROCESSED; if (widget_data->info.checkbox.checked) @@ -88,7 +80,6 @@ display_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data) else text = widget_data->widget->info.checkbox.gid ? "( )" : "[ ]"; -// draw_dlg_text(dlg_data, pos->x, pos->y, text, CHECKBOX_LEN, 0, color); draw_dlg_text_node(dlg_data, pos->x, pos->y, text, CHECKBOX_LEN, 0, color_node); if (selected) {