]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused internal _Py_REF_IS_QUEUED() function (#151236)
authorVictor Stinner <vstinner@python.org>
Thu, 11 Jun 2026 10:54:36 +0000 (12:54 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2026 10:54:36 +0000 (12:54 +0200)
Include/internal/pycore_object.h

index c2c508c1a71c5c019e3d333376f399413b4ff607..dd7955c2770b99707810d84799c61b1f48c8d6da 100644 (file)
@@ -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);