From c9b0e654b5886678bffeb8919c1708522dab224c Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sat, 2 Sep 2017 07:03:10 +1000 Subject: [PATCH] Remove unused variables BC, UP and my_PC These appear to be a hangover from old termcap-using code, but there's nothing in BX that uses them anymore. --- source/term.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/source/term.c b/source/term.c index 04c942a..0192dae 100644 --- a/source/term.c +++ b/source/term.c @@ -64,8 +64,6 @@ static int tty_des; /* descriptor for the tty */ static struct termios oldb, newb; - char my_PC, *BC, *UP; - int BClen, UPlen; extern int already_detached; #if !defined(WTERM_C) @@ -874,22 +872,6 @@ int term_init (char *term) } } - BC = current_term->TI_cub1; - UP = current_term->TI_cuu1; - if (current_term->TI_pad) - my_PC = current_term->TI_pad[0]; - else - my_PC = 0; - - if (BC) - BClen = strlen(BC); - else - BClen = 0; - if (UP) - UPlen = strlen(UP); - else - UPlen = 0; - li = current_term->TI_lines; co = current_term->TI_cols; if (!co)