From 4919ccbc70dd4f890cd04154cbde7607baa3b150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 4 Aug 2020 18:07:22 +0200 Subject: [PATCH] term: remove unusued 'damage' list --- csi.c | 2 -- terminal.c | 6 ++---- terminal.h | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/csi.c b/csi.c index 2122d272..9e230b63 100644 --- a/csi.c +++ b/csi.c @@ -1135,7 +1135,6 @@ csi_dispatch(struct terminal *term, uint8_t final) min(term->grid->cursor.point.row, term->rows - 1), min(term->grid->cursor.point.col, term->cols - 1)); - tll_free(term->alt.damage); tll_free(term->alt.scroll_damage); term_erase( @@ -1262,7 +1261,6 @@ csi_dispatch(struct terminal *term, uint8_t final) min(term->grid->cursor.point.row, term->rows - 1), min(term->grid->cursor.point.col, term->cols - 1)); - tll_free(term->alt.damage); tll_free(term->alt.scroll_damage); /* Delete all sixel images on the alt screen */ diff --git a/terminal.c b/terminal.c index ae4f3ee5..55ea840e 100644 --- a/terminal.c +++ b/terminal.c @@ -898,8 +898,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper, .start = {-1, -1}, .end = {-1, -1}, }, - .normal = {.damage = tll_init(), .scroll_damage = tll_init(), .sixel_images = tll_init()}, - .alt = {.damage = tll_init(), .scroll_damage = tll_init(), .sixel_images = tll_init()}, + .normal = {.scroll_damage = tll_init(), .sixel_images = tll_init()}, + .alt = {.scroll_damage = tll_init(), .sixel_images = tll_init()}, .grid = &term->normal, .composed_count = 0, .composed = NULL, @@ -1408,9 +1408,7 @@ term_reset(struct terminal *term, bool hard) } term->normal.cur_row = term->normal.rows[0]; term->alt.cur_row = term->alt.rows[0]; - tll_free(term->normal.damage); tll_free(term->normal.scroll_damage); - tll_free(term->alt.damage); tll_free(term->alt.scroll_damage); term->render.last_cursor.row = NULL; term->render.was_flashing = false; diff --git a/terminal.h b/terminal.h index 8d3283ce..9d9ed1be 100644 --- a/terminal.h +++ b/terminal.h @@ -114,7 +114,6 @@ struct grid { struct row **rows; struct row *cur_row; - tll(struct damage) damage; tll(struct damage) scroll_damage; tll(struct sixel) sixel_images; };