From 5428f48b6308c7fd71636077f2ebc307c9a53d03 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 29 Jan 2020 19:22:11 +0100 Subject: Remove deadcode in _Py_inc_count() (GH-18257) (tp->tp_next != NULL) check became redundant with commit 45294a9562e5c360ee8ef8498d8792e05a6eb25e (merged in 2006). --- Objects/object.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Objects/object.c b/Objects/object.c index 6fc1146..14533db 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -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; -- cgit v0.12