From 78c3de9ce3e76ddc3483ec3f32a9a60e3509fc6e Mon Sep 17 00:00:00 2001 From: jbj Date: Tue, 12 Oct 2004 21:08:04 +0000 Subject: [PATCH] No need for ps.NumProblems() method. CVS patchset: 7452 CVS date: 2004/10/12 21:08:04 --- python/rpmps-py.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/python/rpmps-py.c b/python/rpmps-py.c index b1c7c73..4c3954a 100644 --- a/python/rpmps-py.c +++ b/python/rpmps-py.c @@ -25,20 +25,6 @@ rpmps_Debug(/*@unused@*/ rpmpsObject * s, PyObject * args) return Py_None; } -/*@null@*/ -static PyObject * -rpmps_NumProblems(rpmpsObject * s, PyObject * args) - /*@*/ -{ - int rc; - - if (!PyArg_ParseTuple(args, ":NumProblems")) return NULL; - rc = rpmpsNumProblems(s->ps); -if (_rpmps_debug < 0) -fprintf(stderr, "*** rpmps_NumProblems(%p,%p) rc %d\n", s, args, rc); - return Py_BuildValue("i", rc); -} - static PyObject * rpmps_iter(rpmpsObject * s) /*@*/ @@ -107,8 +93,6 @@ fprintf(stderr, "*** rpmps_Next(%p,%p)\n", s, args); static struct PyMethodDef rpmps_methods[] = { {"Debug", (PyCFunction)rpmps_Debug, METH_VARARGS, NULL}, - {"NumProblems",(PyCFunction)rpmps_NumProblems, METH_VARARGS, - "ps.NumProblems -> NumProblems - Return no. of elements.\n" }, {NULL, NULL} /* sentinel */ }; /*@=fullinitblock@*/ -- 2.7.4