Skip to content

Commit 5428f48

Browse files
authored
Remove deadcode in _Py_inc_count() (GH-18257)
(tp->tp_next != NULL) check became redundant with commit 45294a9 (merged in 2006).
1 parent db5e86a commit 5428f48

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Objects/object.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ _Py_inc_count(PyTypeObject *tp)
182182
{
183183
if (tp->tp_next == NULL && tp->tp_prev == NULL) {
184184
/* first time; insert in linked list */
185-
if (tp->tp_next != NULL) /* sanity check */
186-
Py_FatalError("XXX _Py_inc_count sanity check");
187185
if (type_list)
188186
type_list->tp_prev = tp;
189187
tp->tp_next = type_list;

0 commit comments

Comments
 (0)