summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-06-03 13:34:15 (GMT)
committerGitHub <noreply@github.com>2019-06-03 13:34:15 (GMT)
commit395420e2a35937fa9777fc3c8b0086629db95e27 (patch)
treeb103612b67dc8f204c20febd0353be6b32fa4b84 /Python/ceval.c
parent91234a16367b56ca03ee289f7c03a34d4cfec4c8 (diff)
downloadcpython-395420e2a35937fa9777fc3c8b0086629db95e27.zip
cpython-395420e2a35937fa9777fc3c8b0086629db95e27.tar.gz
cpython-395420e2a35937fa9777fc3c8b0086629db95e27.tar.bz2
bpo-26219: remove unused code (GH-13775)
This code was for deoptimization, which is removed from PR-12884.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 411ba3d..cb0275c 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)