summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-05-29 08:23:27 (GMT)
committerGitHub <noreply@github.com>2019-05-29 08:23:27 (GMT)
commit7d408697a96953a182328ec0b0650e9999da4116 (patch)
tree9914a8e5fc879da54e6de8fb9409df679b4abe4f /Objects/unicodeobject.c
parentca804955927dddb6ae5a846dbc0248a932be9a4e (diff)
downloadcpython-7d408697a96953a182328ec0b0650e9999da4116.zip
cpython-7d408697a96953a182328ec0b0650e9999da4116.tar.gz
cpython-7d408697a96953a182328ec0b0650e9999da4116.tar.bz2
remove unnecessary tp_dealloc (GH-13647)
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 0fe7b56..eafda63 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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*/