No need for ps.NumProblems() method.
authorjbj <devnull@localhost>
Tue, 12 Oct 2004 21:08:04 +0000 (21:08 +0000)
committerjbj <devnull@localhost>
Tue, 12 Oct 2004 21:08:04 +0000 (21:08 +0000)
CVS patchset: 7452
CVS date: 2004/10/12 21:08:04

python/rpmps-py.c

index b1c7c73..4c3954a 100644 (file)
@@ -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@*/