From: Georg Brandl Date: Sat, 11 Aug 2012 09:16:18 +0000 (+0200) Subject: Remove unused variables in parsetok(). X-Git-Tag: v2.7.4rc1~653 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02144cca2fe255d3b71e1fee479a2331cdb936db;p=thirdparty%2FPython%2Fcpython.git Remove unused variables in parsetok(). --- diff --git a/Parser/parsetok.c b/Parser/parsetok.c index e8d396a5f30c..069cc6b711b9 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -131,7 +131,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, { parser_state *ps; node *n; - int started = 0, handling_import = 0, handling_with = 0; + int started = 0; if ((ps = PyParser_New(g, start)) == NULL) { fprintf(stderr, "no mem for new parser\n"); @@ -163,7 +163,6 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, } if (type == ENDMARKER && started) { type = NEWLINE; /* Add an extra newline */ - handling_with = handling_import = 0; started = 0; /* Add the right number of dedent tokens, except if a certain flag is given --