Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34b2569

Browse files
committed
_Py_AskYesNo(): Removed this function. It was defined only in a
Py_TRACE_REFS build, but wasn't referenced.
1 parent c53b29e commit 34b2569

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

Python/pythonrun.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ static void err_input(perrdetail *);
4242
static void initsigs(void);
4343
static void call_sys_exitfunc(void);
4444
static void call_ll_exitfuncs(void);
45-
46-
#ifdef Py_TRACE_REFS
47-
int _Py_AskYesNo(char *prompt);
48-
#endif
49-
5045
extern void _PyUnicode_Init(void);
5146
extern void _PyUnicode_Fini(void);
5247
extern void _PyCodecRegistry_Init(void);
@@ -1389,21 +1384,6 @@ initsigs(void)
13891384
PyOS_InitInterrupts(); /* May imply initsignal() */
13901385
}
13911386

1392-
#ifdef Py_TRACE_REFS
1393-
/* Ask a yes/no question */
1394-
1395-
int
1396-
_Py_AskYesNo(char *prompt)
1397-
{
1398-
char buf[256];
1399-
1400-
fprintf(stderr, "%s [ny] ", prompt);
1401-
if (fgets(buf, sizeof buf, stdin) == NULL)
1402-
return 0;
1403-
return buf[0] == 'y' || buf[0] == 'Y';
1404-
}
1405-
#endif
1406-
14071387
#ifdef MPW
14081388

14091389
/* Check for file descriptor connected to interactive device.

0 commit comments

Comments
 (0)