From: Yongtao Huang Date: Fri, 26 Dec 2025 11:11:11 +0000 (+0800) Subject: Remove redundant pycore_optimizer.h includes (#143184) X-Git-Tag: v3.15.0a5~11^2~206 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de22e718bb5c57ec4178aa1787d7634cfc649261;p=thirdparty%2FPython%2Fcpython.git Remove redundant pycore_optimizer.h includes (#143184) `pycore_optimizer.h` was included redundantly in Objects/frameobject.c and Python/instrumentation.c. Both includes are unnecessary and can be safely removed. No functional change. Signed-off-by: Yongtao Huang --- diff --git a/Objects/frameobject.c b/Objects/frameobject.c index b652973600c1..3c0b454503be 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -17,7 +17,6 @@ #include "frameobject.h" // PyFrameLocalsProxyObject #include "opcode.h" // EXTENDED_ARG -#include "pycore_optimizer.h" #include "clinic/frameobject.c.h" diff --git a/Python/instrumentation.c b/Python/instrumentation.c index 9e750433cffa..28bbe1d82a3b 100644 --- a/Python/instrumentation.c +++ b/Python/instrumentation.c @@ -18,7 +18,6 @@ #include "pycore_tuple.h" // _PyTuple_FromArraySteal() #include "opcode_ids.h" -#include "pycore_optimizer.h" /* Uncomment this to dump debugging output when assertions fail */