summaryrefslogtreecommitdiff
path: root/python/rpmps-py.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-22 17:33:07 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-22 17:33:07 +0300
commit43f585fced06e10d4fad8208697cc323857ef535 (patch)
tree01cdbff691a90b34ca67ffbf494a8d21fa8ada66 /python/rpmps-py.c
parentca6591e86c201e54ae8ee876f12d5c0f0c835236 (diff)
downloadlibrpm-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.c13
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 */