links

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

Commit: eab06c3a084b8356515aa61b800fd922a978de5c
Parent: 0123b627d0ddbd11b386175706b24385c2dbdf91
Author: 0x766F6964
Date:   Mon,  3 Aug 2020 09:22:03 -0600

remove some dead assignments

Diffstat:
Mbfu.c | 2+-
Mcache.c | 4+---
Mhtml_tbl.c | 2--
Mmain.c | 1-
Mmenu.c | 2--
Msession.c | 1-
6 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/bfu.c b/bfu.c @@ -50,7 +50,7 @@ void add_to_ml(struct memory_list **ml, ...) (*ml)->n = 0; } va_start(ap, ml); - while ((q = va_arg(ap, void *))) { + while (va_arg(ap, void *)) { if (n == INT_MAX) overalloc(); n++; diff --git a/cache.c b/cache.c @@ -38,12 +38,10 @@ static void cache_add_to_tree(struct cache_entry *e) static void cache_delete_from_tree(struct cache_entry *e) { - void *p; - if (!e->url[0]) return; - if (!(p = tdelete(e->url, &cache_root, ce_compare))) + if (!tdelete(e->url, &cache_root, ce_compare)) internal("cache_delete_from_tree: url '%s' not found", e->url); } diff --git a/html_tbl.c b/html_tbl.c @@ -591,9 +591,7 @@ static struct table *parse_table(unsigned char *html, unsigned char *eof, unsign if (!(sc = new_cell(t, x + k, y + j)) || sc->used) { int l, m; if (sc->mx == x && sc->my == y) continue; - /*internal("boo");*/ for (l = 0; l < k; l++) memset(CELL(t, x + l, y + j), 0, sizeof(struct table_cell)); - rsp = j; for (l = 0; l < i; l++) for (m = 0; m < j; m++) CELL(t, x + l, y + m)->rowspan = j; goto brk; } diff --git a/main.c b/main.c @@ -296,7 +296,6 @@ static void init(void) load_config(); if (proxies.only_proxies) reset_settings_for_tor(); - u = parse_options(g_argc - 1, g_argv + 1); fixup_g(); if (!u) { ttt: diff --git a/menu.c b/menu.c @@ -1833,7 +1833,6 @@ static void do_file_menu(struct terminal *term, void *xxx, void *ses_) x = 0; } memcpy(e, file_menu3 + x, sizeof(file_menu3) - x * sizeof(struct menu_item)); - e += sizeof(file_menu3) / sizeof(struct menu_item); do_menu(term, file_menu, ses); } @@ -2008,7 +2007,6 @@ static void do_setup_menu(struct terminal *term, void *xxx, void *ses_) e += sizeof(setup_menu_7) / sizeof(struct menu_item); } memcpy(e, setup_menu_8, sizeof(setup_menu_8)); - e += sizeof(setup_menu_8) / sizeof(struct menu_item); do_menu(term, setup_menu, ses); } diff --git a/session.c b/session.c @@ -1804,7 +1804,6 @@ static int plain_type(struct object_request *rq, unsigned char **p) r = 1; if (!casestrcmp(ct, cast_uchar "text/plain") || !casestrcmp(ct, cast_uchar "file/txt")) goto ff; - r = 2; r = -1; ff: