links

lynx-like text mode web browser
git clone anongit@rnpnr.xyz:links.git
Log | Files | Refs | Feed | README | LICENSE

Commit: bb10073291b1d339be9be2e46cfe5d3ae2aa9178
Parent: 2605e67b4c6641882708110a067efbc7efcf9a7b
Author: Randy Palamar
Date:   Tue,  7 Mar 2023 11:13:50 -0700

remove a couple unused variables

Diffstat:
Mbfu.c | 2--
Mterminal.c | 3---
2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/bfu.c b/bfu.c @@ -367,7 +367,6 @@ xxx: if (ev->x < menu->x || ev->x >= menu->x + menu->xw || ev->y < menu->y || ev->y >= menu->y + menu->yw) { - int f = 1; struct window *w1 = NULL; struct list_head *w1l; foreachfrom (struct window, w1, w1l, win->term->windows, @@ -385,7 +384,6 @@ xxx: && ev->y > m1->y && ev->y < m1->y + m1->yw - 1) goto del; - f--; } if ((ev->b & BM_ACT) == B_DOWN) goto del; diff --git a/terminal.c b/terminal.c @@ -597,7 +597,6 @@ static unsigned char frame_vt100[49] = l = add_chr_to_str(&a, l, ';'); \ l = add_num_to_str(&a, l, (x) + 1 + term->left_margin); \ l = add_chr_to_str(&a, l, 'H'); \ - n_chars = 0; \ } #define PRINT_CHAR(p) \ @@ -669,7 +668,6 @@ static unsigned char frame_vt100[49] = else \ l = add_chr_to_str(&a, l, '.'); \ cx++; \ - n_chars++; \ } static void @@ -677,7 +675,6 @@ redraw_screen(struct terminal *term) { int x, y, p = 0; int cx = term->lcx, cy = term->lcy; - unsigned n_chars = INT_MAX / 2; unsigned char *a; int attrib = -1; int mode = -1;