term: remove unneeded blink.active field

We now use the timer FD instead; if it is -1, blinking is not active.
This commit is contained in:
Daniel Eklöf 2020-10-13 19:28:05 +02:00
parent ac55e4067a
commit 1f650a7fdf
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 0 additions and 4 deletions

View file

@ -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;

View file

@ -291,7 +291,6 @@ struct terminal {
} flash;
struct {
bool active;
enum { BLINK_ON, BLINK_OFF } state;
int fd;
} blink;