8000 Remove unused function · python/cpython@30fc873 · GitHub
[go: up one dir, main page]

Skip to content

Commit 30fc873

Browse files
committed
Remove unused function
1 parent 206571b commit 30fc873

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Python/gc_free_threading.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,6 @@ gc_decref(PyObject *op)
159159
op->ob_tid -= 1;
160160
}
161161

162-
static inline Py_ssize_t
163-
gc_refcount(PyObject *op)
164-
{
165-
Py_ssize_t refcount = Py_REFCNT(op);
166-
if (_PyObject_HasDeferredRefcount(op)) {
167-
refcount -= 1;
168-
}
169-
return refcount;
170-
}
171-
172162
static void
173163
disable_deferred_refcounting(PyObject *op)
174164
{

0 commit comments

Comments
 (0)
0