summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Sławiński (amade) <amade@asmblr.net>2011-01-06 23:41:43 +0100
committerAmadeusz Sławiński <amade@asmblr.net>2014-07-24 11:50:44 +0200
commit038473af88d54d93a158ca5978869a22f2bb94c3 (patch)
treef7c1edb65996420d40223adb86882277900288c9
parent3d56156e69bae0d53cb8c4ca7584ac302d0be003 (diff)
downloadscreen-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.c26
1 files changed, 0 insertions, 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