[Python-checkins] bpo-26219: remove unused code (GH-13775)

Inada Naoki webhook-mailer at python.org
Mon Jun 3 09:34:35 EDT 2019


https://github.com/python/cpython/commit/395420e2a35937fa9777fc3c8b0086629db95e27
commit: 395420e2a35937fa9777fc3c8b0086629db95e27
branch: master
author: Inada Naoki <songofacandy at gmail.com>
committer: GitHub <noreply at github.com>
date: 2019-06-03T22:34:15+09:00
summary:

bpo-26219: remove unused code (GH-13775)

This code was for deoptimization, which is removed from
PR-12884.

files:
M Python/ceval.c

diff --git a/Python/ceval.c b/Python/ceval.c
index 411ba3d73c5f..cb0275c4183d 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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)



More information about the Python-checkins mailing list