From f21e42d90608ae34b4b0814d8a674c3fec4bbc7d Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Thu, 1 May 2025 12:07:53 +0100 Subject: Remove duplicate includes: Python/{bytecodes,ceval,optimizer_analysis}.c (#132622) --- Python/bytecodes.c | 3 +-- Python/ceval.c | 1 - Python/optimizer_analysis.c | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 9ddc3f3..bcc128c 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -18,7 +18,7 @@ #include "pycore_instruments.h" #include "pycore_interpolation.h" // _PyInterpolation_Build() #include "pycore_intrinsics.h" -#include "pycore_long.h" // _PyLong_GetZero() +#include "pycore_long.h" // _PyLong_ExactDealloc(), _PyLong_GetZero() #include "pycore_moduleobject.h" // PyModuleObject #include "pycore_object.h" // _PyObject_GC_TRACK() #include "pycore_opcode_metadata.h" // uop names @@ -27,7 +27,6 @@ #include "pycore_pyerrors.h" // _PyErr_GetRaisedException() #include "pycore_pystate.h" // _PyInterpreterState_GET() #include "pycore_range.h" // _PyRangeIterObject -#include "pycore_long.h" // _PyLong_ExactDealloc() #include "pycore_setobject.h" // _PySet_NextEntry() #include "pycore_sliceobject.h" // _PyBuildSlice_ConsumeRefs #include "pycore_stackref.h" diff --git a/Python/ceval.c b/Python/ceval.c index 4a75b60..c777e79 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -30,7 +30,6 @@ #include "pycore_opcode_utils.h" // MAKE_FUNCTION_* #include "pycore_optimizer.h" // _PyUOpExecutor_Type #include "pycore_pyatomic_ft_wrappers.h" // FT_ATOMIC_* -#include "pycore_pyerrors.h" #include "pycore_pyerrors.h" // _PyErr_GetRaisedException() #include "pycore_pystate.h" // _PyInterpreterState_GET() #include "pycore_range.h" // _PyRangeIterObject diff --git a/Python/optimizer_analysis.c b/Python/optimizer_analysis.c index 387ebc8..8b0bd1e 100644 --- a/Python/optimizer_analysis.c +++ b/Python/optimizer_analysis.c @@ -19,14 +19,11 @@ #include "pycore_opcode_utils.h" #include "pycore_pystate.h" // _PyInterpreterState_GET() #include "pycore_uop_metadata.h" -#include "pycore_dict.h" #include "pycore_long.h" #include "pycore_interpframe.h" // _PyFrame_GetCode #include "pycore_optimizer.h" #include "pycore_object.h" -#include "pycore_dict.h" #include "pycore_function.h" -#include "pycore_uop_metadata.h" #include "pycore_uop_ids.h" #include "pycore_range.h" -- cgit v0.12