diff options
author | Inada Naoki <songofacandy@gmail.com> | 2019-05-29 17:23:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-29 17:23:27 +0900 |
commit | 7d408697a96953a182328ec0b0650e9999da4116 (patch) | |
tree | 9914a8e5fc879da54e6de8fb9409df679b4abe4f /Objects/complexobject.c | |
parent | ca804955927dddb6ae5a846dbc0248a932be9a4e (diff) | |
download | cpython-git-7d408697a96953a182328ec0b0650e9999da4116.tar.gz |
remove unnecessary tp_dealloc (GH-13647)
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r-- | Objects/complexobject.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index cae2bf11dc..6d4d8c56f7 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -343,12 +343,6 @@ PyComplex_AsCComplex(PyObject *op) } } -static void -complex_dealloc(PyObject *op) -{ - op->ob_type->tp_free(op); -} - static PyObject * complex_repr(PyComplexObject *v) { @@ -1118,7 +1112,7 @@ PyTypeObject PyComplex_Type = { "complex", sizeof(PyComplexObject), 0, - complex_dealloc, /* tp_dealloc */ + 0, /* tp_dealloc */ 0, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ |