]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove redundant pycore_optimizer.h includes (#143184)
authorYongtao Huang <yongtaoh2022@gmail.com>
Fri, 26 Dec 2025 11:11:11 +0000 (19:11 +0800)
committerGitHub <noreply@github.com>
Fri, 26 Dec 2025 11:11:11 +0000 (11:11 +0000)
`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 <yongtaoh2022@gmail.com>
Objects/frameobject.c
Python/instrumentation.c

index b652973600c17dcd93fa22e0d6abad368b0becd4..3c0b454503be66d43843b76eb55b313872dd4883 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "frameobject.h"          // PyFrameLocalsProxyObject
 #include "opcode.h"               // EXTENDED_ARG
-#include "pycore_optimizer.h"
 
 #include "clinic/frameobject.c.h"
 
index 9e750433cffa890f6bf93d77ce27102991db48d4..28bbe1d82a3b885b5217d89d6fbcf3de015234cf 100644 (file)
@@ -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 */