diff options
author | Inada Naoki <songofacandy@gmail.com> | 2019-05-29 08:23:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-29 08:23:27 (GMT) |
commit | 7d408697a96953a182328ec0b0650e9999da4116 (patch) | |
tree | 9914a8e5fc879da54e6de8fb9409df679b4abe4f /Objects/longobject.c | |
parent | ca804955927dddb6ae5a846dbc0248a932be9a4e (diff) | |
download | cpython-7d408697a96953a182328ec0b0650e9999da4116.zip cpython-7d408697a96953a182328ec0b0650e9999da4116.tar.gz cpython-7d408697a96953a182328ec0b0650e9999da4116.tar.bz2 |
remove unnecessary tp_dealloc (GH-13647)
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 1934328..3ebbd3e 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -3053,12 +3053,6 @@ PyLong_AsDouble(PyObject *v) /* Methods */ -static void -long_dealloc(PyObject *v) -{ - Py_TYPE(v)->tp_free(v); -} - static int long_compare(PyLongObject *a, PyLongObject *b) { @@ -5628,7 +5622,7 @@ PyTypeObject PyLong_Type = { "int", /* tp_name */ offsetof(PyLongObject, ob_digit), /* tp_basicsize */ sizeof(digit), /* tp_itemsize */ - long_dealloc, /* tp_dealloc */ + 0, /* tp_dealloc */ 0, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ |