]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused variables in parsetok().
authorGeorg Brandl <georg@python.org>
Sat, 11 Aug 2012 09:16:18 +0000 (11:16 +0200)
committerGeorg Brandl <georg@python.org>
Sat, 11 Aug 2012 09:16:18 +0000 (11:16 +0200)
Parser/parsetok.c

index e8d396a5f30ca67509c910b00e512705f9ae333b..069cc6b711b932a84eeefc63d2b8455fa9ff275d 100644 (file)
@@ -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 --