diff options
author | Frederic Cambus <fcambus@cvs.openbsd.org> | 2017-06-23 12:56:26 +0000 |
---|---|---|
committer | Frederic Cambus <fcambus@cvs.openbsd.org> | 2017-06-23 12:56:26 +0000 |
commit | 5aaaab9ed11758578d163a3ff2c5538bb066ebea (patch) | |
tree | b7be550775f6f45901c4c70ec04e86e95d1da967 /games/adventure/io.c | |
parent | 496fd0ace975f625c799c9a15b036697205b48dd (diff) |
Remove unused confirm() and datime() functions.
Those functions are unused and have been compiled out since 1998,
it's time to let them go.
OK sthen@, tom@, mestre@
Diffstat (limited to 'games/adventure/io.c')
-rw-r--r-- | games/adventure/io.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/games/adventure/io.c b/games/adventure/io.c index dc9798b4a45..04eac4c4abe 100644 --- a/games/adventure/io.c +++ b/games/adventure/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.22 2016/12/21 18:28:19 krw Exp $ */ +/* $OpenBSD: io.c,v 1.23 2017/06/23 12:56:25 fcambus Exp $ */ /* $NetBSD: io.c,v 1.3 1995/04/24 12:21:37 cgd Exp $ */ /*- @@ -89,27 +89,6 @@ getin(char *wrd1, size_t siz1, char *wrd2, size_t siz2) } } - -#if 0 /* Not used */ -int -confirm(char *mesg) /* confirm irreversible action */ -{ - int result; - int ch; - - printf("%s", mesg); /* tell him what he did */ - if ((ch = getchar()) == 'y') /* was his first letter a 'y'? */ - result = 1; - else if (ch == EOF) { - printf("user closed input stream, quitting...\n"); - exit(0); - } else - result = 0; - FLUSHLINE; - return (result); -} -#endif - int yes(int x, int y, int z) /* confirm with rspeak */ { |