]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused functions in Parser/parsetok.c (GH-17365)
authorEmmanuel Arias <eamanu@yaerobi.com>
Mon, 13 Jan 2020 11:58:52 +0000 (08:58 -0300)
committerPablo Galindo <Pablogsal@gmail.com>
Mon, 13 Jan 2020 11:58:52 +0000 (11:58 +0000)
Parser/parsetok.c

index 2bb733d0dcd66bc66eab1569c1335ec3511c4a35..b0b1bd38a7bbab2467a23a97e1734cca824ac2de 100644 (file)
@@ -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 = "<string>";
-    PySys_WriteStderr(msg, filename, lineno);
-}
-#endif
-#endif
-
 /* Parse input coming from the given tokenizer structure.
    Return error code. */