Commit: 61f1c31927830a5d1dc5f156f1b731a1d846384d
Parent: 4bd7f0e5d8d44d2b96f8606cac26490124af9dc6
Author: 0x766F6964
Date: Sun, 24 Nov 2019 22:46:21 -0700
remove some dead assignments
Diffstat:
4 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/html.c b/html.c
@@ -2573,10 +2573,6 @@ static void parse_frame_widths(unsigned char *a, int ww, int www, int **op, int
q--;
}
}
- if (q > 0) {
- q = 0;
- /*internal("parse_frame_widths: q > 0"); may happen when page contains too big values */
- }
free(oo);
}
for (i = 0; i < ol; i++) if (!o[i]) {
diff --git a/html_tbl.c b/html_tbl.c
@@ -1397,7 +1397,6 @@ static void display_table_frames(struct table *t, int x, int y)
if (t->border && (t->frame & F_RHS)) {
draw_frame_point(cx, cy, i, j);
if (j < t->y) draw_frame_vline(cx, safe_add(cy, 1), t->r_heights[j], i, j);
- cx = safe_add(cx, 1);
}
cy = safe_add(cy, 1);
} else if (j < t->y) {
diff --git a/view_gr.c b/view_gr.c
@@ -995,14 +995,13 @@ int g_next_link(struct f_data_c *fd, int dir, int do_scroll)
{
int orig_link = -1;
int r = 2;
- int n, pn;
+ int n;
if (fd->vs->current_link >= 0 && fd->vs->current_link < fd->f_data->nlinks) {
orig_link = fd->vs->current_link;
- n = (pn = fd->vs->current_link) + dir;
+ n = fd->vs->current_link + dir;
} else {
retry:
n = dir > 0 ? 0 : fd->f_data->nlinks - 1;
- pn = -1;
}
again:
if (n < 0 || n >= fd->f_data->nlinks) {
diff --git a/x.c b/x.c
@@ -1250,7 +1250,6 @@ static void x_process_events(void *data)
if (last_was_mouse) {
int a, b;
- last_was_mouse = 0;
dev = x_find_gd(last_event.xmotion.window);
if (!dev)
goto ret;
@@ -1596,7 +1595,7 @@ invalid_param:
xim = XOpenIM(x_display, NULL, NULL, NULL);
#if defined(LC_CTYPE)
if (!xim) {
- if (!l) l = cast_uchar setlocale(LC_CTYPE, "en_US.UTF-8");
+ if (!l) setlocale(LC_CTYPE, "en_US.UTF-8");
xim = XOpenIM(x_display, NULL, NULL, NULL);
}
#endif