From 1f650a7fdf9a7aa2088a303a7af77a2d05d73dd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 13 Oct 2020 19:28:05 +0200 Subject: [PATCH] term: remove unneeded blink.active field We now use the timer FD instead; if it is -1, blinking is not active. --- terminal.c | 3 --- terminal.h | 1 - 2 files changed, 4 deletions(-) diff --git a/terminal.c b/terminal.c index 69325886..21cc4024 100644 --- a/terminal.c +++ b/terminal.c @@ -391,9 +391,7 @@ fdm_blink(struct fdm *fdm, int fd, int events, void *data) if (no_blinking_cells) { LOG_DBG("disarming blink timer"); - term->blink.active = false; term->blink.state = BLINK_ON; - fdm_del(term->fdm, term->blink.fd); term->blink.fd = -1; } else @@ -1469,7 +1467,6 @@ term_reset(struct terminal *term, bool hard) return; term->flash.active = false; - term->blink.active = false; term->blink.state = BLINK_ON; term->colors.fg = term->colors.default_fg; term->colors.bg = term->colors.default_bg; diff --git a/terminal.h b/terminal.h index fd4ac840..d72fd579 100644 --- a/terminal.h +++ b/terminal.h @@ -291,7 +291,6 @@ struct terminal { } flash; struct { - bool active; enum { BLINK_ON, BLINK_OFF } state; int fd; } blink;