From d0c5e5c2417ffc15070cc3485b6a1a9881c099a8 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Thu, 15 Jun 2017 08:55:40 +0200 Subject: more: remove unused variable slow_tty is at least unused since util-linux 2.2. FYI here is another derived more.c where slow_tty is still used: https://github.com/sergev/LiteBSD/blob/master/old/more/more.c Signed-off-by: Ruediger Meier --- text-utils/more.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'text-utils/more.c') diff --git a/text-utils/more.c b/text-utils/more.c index c0c2e8743..7c197b201 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -138,7 +138,7 @@ void prepare_line_buffer(void); static struct termios otty, savetty0; static long file_pos, file_size; -static int fnum, no_intty, no_tty, slow_tty; +static int fnum, no_intty, no_tty; static int dum_opt, dlines; static void onquit(int), onsusp(int), chgwinsz(int), end_it(int); static int nscroll = SCROLL_LEN; /* Number of lines scrolled by 'd' */ @@ -1818,7 +1818,6 @@ void initterm(void) no_intty = tcgetattr(fileno(stdin), &otty); tcgetattr(fileno(stderr), &otty); savetty0 = otty; - slow_tty = cfgetispeed(&otty) < B1200; hardtabs = (otty.c_oflag & TABDLY) != XTABS; if (!no_tty) { otty.c_lflag &= ~(ICANON | ECHO); -- cgit v1.2.3-55-g7522