Hi tech@, Remove unused confirm() and datime() functions.
Those functions are unused and have been compiled out since 1998, it's time to let them go. Comments? OK? Index: games/adventure/io.c =================================================================== RCS file: /cvs/src/games/adventure/io.c,v retrieving revision 1.22 diff -u -p -r1.22 io.c --- games/adventure/io.c 21 Dec 2016 18:28:19 -0000 1.22 +++ games/adventure/io.c 23 Jun 2017 08:58:19 -0000 @@ -89,27 +89,6 @@ getin(char *wrd1, size_t siz1, char *wrd } } - -#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 */ { Index: games/adventure/wizard.c =================================================================== RCS file: /cvs/src/games/adventure/wizard.c,v retrieving revision 1.19 diff -u -p -r1.19 wizard.c --- games/adventure/wizard.c 8 Mar 2016 10:48:39 -0000 1.19 +++ games/adventure/wizard.c 23 Jun 2017 08:58:19 -0000 @@ -45,24 +45,6 @@ #include "extern.h" #include "hdr.h" -#if 0 -void -datime(int *d, int *t) -{ - time_t tvec; - struct tm *tptr; - - time(&tvec); - tptr = localtime(&tvec); - /* day since 1977 (mod leap) */ - *d = tptr->tm_yday + 365 * (tptr->tm_year - 77); - /* bug: this will overflow in the year 2066 AD */ - /* it will be attributed to Wm the C's millenial celebration */ - /* and minutes since midnite */ - *t = tptr->tm_hour * 60 + tptr->tm_min; -} /* pretty painless */ -#endif - char magic[6]; void