]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused variable. (GH-27677) (#27680)
authorMark Shannon <mark@hotpy.org>
Mon, 9 Aug 2021 14:25:40 +0000 (15:25 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Aug 2021 14:25:40 +0000 (15:25 +0100)
Python/compile.c

index edc77e50c9b6c12149b5e0cc221a2d9257b18890..a2378992fd408e0d77fa8233f891cc9f47428bdd 100644 (file)
@@ -7820,7 +7820,6 @@ is_exit_without_lineno(basicblock *b) {
 static int
 duplicate_exits_without_lineno(struct compiler *c)
 {
-    basicblock *entry = NULL;
     /* Copy all exit blocks without line number that are targets of a jump.
      */
     for (basicblock *b = c->u->u_blocks; b != NULL; b = b->b_list) {
@@ -7846,9 +7845,7 @@ duplicate_exits_without_lineno(struct compiler *c)
                 target->b_next = new_target;
             }
         }
-        entry = b;
     }
-    assert(entry != NULL);
     /* Eliminate empty blocks */
     for (basicblock *b = c->u->u_blocks; b != NULL; b = b->b_list) {
         while (b->b_next && b->b_next->b_iused == 0) {