From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Thu, 1 May 2025 11:07:53 +0000 (+0100) Subject: Remove duplicate includes: Python/{bytecodes,ceval,optimizer_analysis}.c (#132622) X-Git-Tag: v3.14.0b1~145 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f21e42d90608ae34b4b0814d8a674c3fec4bbc7d;p=thirdparty%2FPython%2Fcpython.git Remove duplicate includes: Python/{bytecodes,ceval,optimizer_analysis}.c (#132622) --- diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 9ddc3f3ed44f..bcc128cbd039 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 4a75b60c9f00..c777e7944f6c 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 387ebc813abd..8b0bd1e9518c 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"