mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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
|
@ -8099,19 +8099,13 @@ static PyMethodDef encoding_map_methods[] = {
|
|||
{ 0 }
|
||||
};
|
||||
|
||||
static void
|
||||
encoding_map_dealloc(PyObject* o)
|
||||
{
|
||||
PyObject_FREE(o);
|
||||
}
|
||||
|
||||
static PyTypeObject EncodingMapType = {
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
"EncodingMap", /*tp_name*/
|
||||
sizeof(struct encoding_map), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
/* methods */
|
||||
encoding_map_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