diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-07-09 18:22:55 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-07-09 18:22:55 (GMT) |
commit | 34b2569327187887741bce7a11764aacc66dbd83 (patch) | |
tree | f9dac3d570b226aa4f5362585b9822ef37e51b00 | |
parent | c53b29e2a7b770403751865b4d3909817016813e (diff) | |
download | cpython-34b2569327187887741bce7a11764aacc66dbd83.zip cpython-34b2569327187887741bce7a11764aacc66dbd83.tar.gz cpython-34b2569327187887741bce7a11764aacc66dbd83.tar.bz2 |
_Py_AskYesNo(): Removed this function. It was defined only in a
Py_TRACE_REFS build, but wasn't referenced.
-rw-r--r-- | Python/pythonrun.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 88367ae..b1fde29 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -42,11 +42,6 @@ static void err_input(perrdetail *); static void initsigs(void); static void call_sys_exitfunc(void); static void call_ll_exitfuncs(void); - -#ifdef Py_TRACE_REFS -int _Py_AskYesNo(char *prompt); -#endif - extern void _PyUnicode_Init(void); extern void _PyUnicode_Fini(void); extern void _PyCodecRegistry_Init(void); @@ -1389,21 +1384,6 @@ initsigs(void) PyOS_InitInterrupts(); /* May imply initsignal() */ } -#ifdef Py_TRACE_REFS -/* Ask a yes/no question */ - -int -_Py_AskYesNo(char *prompt) -{ - char buf[256]; - - fprintf(stderr, "%s [ny] ", prompt); - if (fgets(buf, sizeof buf, stdin) == NULL) - return 0; - return buf[0] == 'y' || buf[0] == 'Y'; -} -#endif - #ifdef MPW /* Check for file descriptor connected to interactive device. |