From 10119d697c4d4c7e0df9393ed9f400f1fbe6be39 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 10 Jun 2026 13:19:00 +0200 Subject: [PATCH] Remove unused internal _Py_REF_IS_QUEUED() function --- Include/internal/pycore_object.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h index c2c508c1a71c5c0..dd7955c2770b997 100644 --- a/Include/internal/pycore_object.h +++ b/Include/internal/pycore_object.h @@ -266,12 +266,6 @@ _Py_REF_IS_MERGED(Py_ssize_t ob_ref_shared) return (ob_ref_shared & _Py_REF_SHARED_FLAG_MASK) == _Py_REF_MERGED; } -static inline int -_Py_REF_IS_QUEUED(Py_ssize_t ob_ref_shared) -{ - return (ob_ref_shared & _Py_REF_SHARED_FLAG_MASK) == _Py_REF_QUEUED; -} - // Merge the local and shared reference count fields and add `extra` to the // refcount when merging. Py_ssize_t _Py_ExplicitMergeRefcount(PyObject *op, Py_ssize_t extra);