]> granicus.if.org Git - python/commitdiff
bpo-26219: remove unused code (GH-13775)
authorInada Naoki <songofacandy@gmail.com>
Mon, 3 Jun 2019 13:34:15 +0000 (22:34 +0900)
committerGitHub <noreply@github.com>
Mon, 3 Jun 2019 13:34:15 +0000 (22:34 +0900)
This code was for deoptimization, which is removed from
PR-12884.

Python/ceval.c

index 411ba3d73c5f2ec35ff79bb7080d62c34788c468..cb0275c4183d2a8ab12824b12f40bfd7cbf9beb6 100644 (file)
@@ -1117,9 +1117,6 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
                 assert(co_opt_offset <= co->co_opcache_size); \
                 co_opcache = &co->co_opcache[co_opt_offset - 1]; \
                 assert(co_opcache != NULL); \
-                if (co_opcache->optimized < 0) { \
-                    co_opcache = NULL; \
-                } \
             } \
         } \
     } while (0)