From ab4423b49f8a391f42478f44551869bb7aed628b Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Thu, 17 Apr 2025 03:28:04 +0100 Subject: [PATCH] Remove duplicate includes: Python/{bytecodes,ceval}.c --- 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 95786c91371e98..4089df626497c6 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -17,7 +17,7 @@ #include "pycore_function.h" #include "pycore_instruments.h" #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 @@ -26,7 +26,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 e534c7e2b883d5..b81a1d74aa80f4 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -29,7 +29,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 ab28fae94a96a9..8ac8e063aefc47 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"