Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed May 17, 2024
1 parent 8f187ff commit 02560da
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Objects/listobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,17 +647,6 @@ list_contains(PyObject *aa, PyObject *el)
return 0;
}

static inline PyObject *
list_item_try_lock_free(PyListObject *a, Py_ssize_t i)
{
PyObject **ob_item = _Py_atomic_load_ptr(&a->ob_item);
PyObject *item = _Py_atomic_load_ptr(&ob_item[i]);
if (!item || !_Py_TryIncrefCompare(&ob_item[i], item)) {
return NULL;
}
return item;
}

static PyObject *
list_item(PyObject *aa, Py_ssize_t i)
{
Expand Down

0 comments on commit 02560da

Please sign in to comment.