[Python-checkins] Remove unused variable. (GH-27677) (#27680)

pablogsal webhook-mailer at python.org
Mon Aug 9 10:25:50 EDT 2021


https://github.com/python/cpython/commit/0f02993b2c7b3343df05fcf8b5f0e6a900f195b3
commit: 0f02993b2c7b3343df05fcf8b5f0e6a900f195b3
branch: 3.10
author: Mark Shannon <mark at hotpy.org>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021-08-09T15:25:40+01:00
summary:

Remove unused variable. (GH-27677) (#27680)

files:
M Python/compile.c

diff --git a/Python/compile.c b/Python/compile.c
index edc77e50c9b6c..a2378992fd408 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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) {



More information about the Python-checkins mailing list