Skip to content

Commit

Permalink
Remove unused functions in Parser/parsetok.c (GH-17365)
Browse files Browse the repository at this point in the history
  • Loading branch information
eamanu authored and pablogsal committed Jan 13, 2020
1 parent 0b2ab21 commit d23f782
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Parser/parsetok.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */

Expand Down

0 comments on commit d23f782

Please sign in to comment.