diff options
author | Amadeusz Sławiński (amade) <amade@asmblr.net> | 2011-01-06 23:41:43 +0100 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2014-07-24 11:50:44 +0200 |
commit | 038473af88d54d93a158ca5978869a22f2bb94c3 (patch) | |
tree | f7c1edb65996420d40223adb86882277900288c9 | |
parent | 3d56156e69bae0d53cb8c4ca7584ac302d0be003 (diff) | |
download | screen-038473af88d54d93a158ca5978869a22f2bb94c3.tar.gz |
remove _delay()
it doesn't seem to be used and reported warnings with uninitialized
variable ospeed
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
-rw-r--r-- | src/misc.c | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -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 |