From 038473af88d54d93a158ca5978869a22f2bb94c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski=20=28amade=29?= Date: Thu, 6 Jan 2011 23:41:43 +0100 Subject: remove _delay() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it doesn't seem to be used and reported warnings with uninitialized variable ospeed Signed-off-by: Amadeusz Sławiński --- src/misc.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/misc.c b/src/misc.c index a19133f..e3ba5f4 100644 --- a/src/misc.c +++ b/src/misc.c @@ -589,32 +589,6 @@ xsetenv(char *var, char *value) #endif /* USESETENV */ } -#ifdef TERMINFO -/* - * This is a replacement for the buggy _delay function from the termcap - * emulation of libcurses, which ignores ospeed. - */ -int -_delay(register int delay, int (*outc) (int)) -{ - int pad; - short ospeed; - static short osp2pad[] = { - 0,2000,1333,909,743,666,500,333,166,83,55,41,20,10,5,2,1,1 - }; - - if (ospeed <= 0 || ospeed >= (int)(sizeof(osp2pad)/sizeof(*osp2pad))) - return 0; - pad =osp2pad[ospeed]; - delay = (delay + pad / 2) / pad; - while (delay-- > 0) - (*outc)(0); - return 0; -} - -#endif /* TERMINFO */ - - # define xva_arg(s, t, tn) va_arg(s, t) # define xva_list va_list -- cgit v1.2.1