mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Remove deadcode in _Py_inc_count() (GH-18257)
(tp->tp_next != NULL) check became redundant with
commit 45294a9562 (merged in 2006).
This commit is contained in:
parent
db5e86adbc
commit
5428f48b63
1 changed files with 0 additions and 2 deletions
|
|
@ -182,8 +182,6 @@ _Py_inc_count(PyTypeObject *tp)
|
|||
{
|
||||
if (tp->tp_next == NULL && tp->tp_prev == NULL) {
|
||||
/* first time; insert in linked list */
|
||||
if (tp->tp_next != NULL) /* sanity check */
|
||||
Py_FatalError("XXX _Py_inc_count sanity check");
|
||||
if (type_list)
|
||||
type_list->tp_prev = tp;
|
||||
tp->tp_next = type_list;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue