mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
remove unnecessary tp_dealloc (GH-13647)
This commit is contained in:
parent
ca80495592
commit
7d408697a9
4 changed files with 4 additions and 30 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue