diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 17:33:07 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 17:33:07 +0300 |
commit | 43f585fced06e10d4fad8208697cc323857ef535 (patch) | |
tree | 01cdbff691a90b34ca67ffbf494a8d21fa8ada66 /python/rpmds-py.c | |
parent | ca6591e86c201e54ae8ee876f12d5c0f0c835236 (diff) | |
download | librpm-tizen-43f585fced06e10d4fad8208697cc323857ef535.tar.gz librpm-tizen-43f585fced06e10d4fad8208697cc323857ef535.tar.bz2 librpm-tizen-43f585fced06e10d4fad8208697cc323857ef535.zip |
Eliminate unnecessary custom object allocation functions
- these are just calling python defaults, no point at all...
Diffstat (limited to 'python/rpmds-py.c')
-rw-r--r-- | python/rpmds-py.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c index 2820d67e0..7b54aa7b5 100644 --- a/python/rpmds-py.c +++ b/python/rpmds-py.c @@ -519,17 +519,6 @@ fprintf(stderr, "%p -- ds %p\n", s, s->ds); /** \ingroup py_c */ -static PyObject * rpmds_alloc(PyTypeObject * subtype, int nitems) -{ - PyObject * s = PyType_GenericAlloc(subtype, nitems); - -if (_rpmds_debug < 0) -fprintf(stderr, "*** rpmds_alloc(%p,%d) ret %p\n", subtype, nitems, s); - return s; -} - -/** \ingroup py_c - */ static PyObject * rpmds_new(PyTypeObject * subtype, PyObject *args, PyObject *kwds) { rpmdsObject * s = (void *) PyObject_New(rpmdsObject, subtype); @@ -591,7 +580,7 @@ PyTypeObject rpmds_Type = { 0, /* tp_descr_set */ 0, /* tp_dictoffset */ (initproc) rpmds_init, /* tp_init */ - (allocfunc) rpmds_alloc, /* tp_alloc */ + 0, /* tp_alloc */ (newfunc) rpmds_new, /* tp_new */ (freefunc) rpmds_free, /* tp_free */ 0, /* tp_is_gc */ |