From 5325ea042decae3d44d1cba54abb782a6fcd532c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 25 May 2021 19:34:21 +0200 Subject: [PATCH] grid: no need to keep the tp_col/uri_col variables around --- grid.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/grid.c b/grid.c index b1b8c57a..1563fc10 100644 --- a/grid.c +++ b/grid.c @@ -545,18 +545,15 @@ grid_resize_and_reflow( col_count = max(col_count, range->end + 1); for (int start = 0, left = col_count; left > 0;) { - int tp_col = -1; - int uri_col = -1; int end; - bool tp_break = false; bool uri_break = false; if (range != NULL) { - uri_col = (range->start >= start ? range->start : range->end) + 1; + int uri_col = (range->start >= start ? range->start : range->end) + 1; if (tp != NULL) { - tp_col = tp->col + 1; + int tp_col = tp->col + 1; end = min(tp_col, uri_col); tp_break = end == tp_col; @@ -566,7 +563,7 @@ grid_resize_and_reflow( uri_break = true; } } else if (tp != NULL) { - end = tp_col = tp->col + 1; + end = tp->col + 1; tp_break = true; } else end = col_count;