From: Emmanuel Arias Date: Mon, 13 Jan 2020 11:58:52 +0000 (-0300) Subject: Remove unused functions in Parser/parsetok.c (GH-17365) X-Git-Tag: v3.9.0a3~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d23f78267a9082b6a8fa63ef601fdf9669e57ede;p=thirdparty%2FPython%2Fcpython.git Remove unused functions in Parser/parsetok.c (GH-17365) --- diff --git a/Parser/parsetok.c b/Parser/parsetok.c index 2bb733d0dcd6..b0b1bd38a7bb 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -207,24 +207,6 @@ PyParser_ParseFileFlagsEx(FILE *fp, const char *filename, return n; } -#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD -#if 0 -static const char with_msg[] = -"%s:%d: Warning: 'with' will become a reserved keyword in Python 2.6\n"; - -static const char as_msg[] = -"%s:%d: Warning: 'as' will become a reserved keyword in Python 2.6\n"; - -static void -warn(const char *msg, const char *filename, int lineno) -{ - if (filename == NULL) - filename = ""; - PySys_WriteStderr(msg, filename, lineno); -} -#endif -#endif - /* Parse input coming from the given tokenizer structure. Return error code. */