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/rpmps-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/rpmps-py.c')
-rw-r--r-- | python/rpmps-py.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/python/rpmps-py.c b/python/rpmps-py.c index 875d785f3..7355d18bd 100644 --- a/python/rpmps-py.c +++ b/python/rpmps-py.c @@ -192,17 +192,6 @@ fprintf(stderr, "%p -- ps %p\n", s, s->ps); /** \ingroup py_c */ -static PyObject * rpmps_alloc(PyTypeObject * subtype, int nitems) -{ - PyObject * s = PyType_GenericAlloc(subtype, nitems); - -if (_rpmps_debug < 0) -fprintf(stderr, "*** rpmps_alloc(%p,%d) ret %p\n", subtype, nitems, s); - return s; -} - -/** \ingroup py_c - */ static PyObject * rpmps_new(PyTypeObject * subtype, PyObject *args, PyObject *kwds) { rpmpsObject * s = (void *) PyObject_New(rpmpsObject, subtype); @@ -263,7 +252,7 @@ PyTypeObject rpmps_Type = { 0, /* tp_descr_set */ 0, /* tp_dictoffset */ (initproc) rpmps_init, /* tp_init */ - (allocfunc) rpmps_alloc, /* tp_alloc */ + 0, /* tp_alloc */ (newfunc) rpmps_new, /* tp_new */ (freefunc) rpmps_free, /* tp_free */ 0, /* tp_is_gc */ |