Skip to content

Commit

Permalink
Remove deadcode in _Py_inc_count() (pythonGH-18257)
Browse files Browse the repository at this point in the history
(tp->tp_next != NULL) check became redundant with
commit 45294a9 (merged in 2006).
  • Loading branch information
vstinner committed Jan 29, 2020
1 parent db5e86a commit 5428f48
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Objects/object.c
Expand Up @@ -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;
Expand Down

0 comments on commit 5428f48

Please sign in to comment.