Remove the broken tp_print method from spec
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Sep 2009 11:41:30 +0000 (14:41 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Sep 2009 11:41:30 +0000 (14:41 +0300)
python/spec-py.c

index 6f73aa3..4739d34 100644 (file)
@@ -43,12 +43,6 @@ spec_dealloc(specObject * s)
         PyObject_Del(s);
 }
 
-static int
-spec_print(specObject * s)
-{
-    return 0;
-}
-
 /* XXX TODO return something sensible if spec exists but component (eg %clean)
  * does not. Possibly "" or None */
 
@@ -188,7 +182,7 @@ PyTypeObject spec_Type = {
     sizeof(specObject),        /*tp_basicsize*/
     0,                         /*tp_itemsize*/
     (destructor) spec_dealloc, /*tp_dealloc*/
-    (printfunc) spec_print,    /*tp_print*/
+    0,                         /*tp_print*/
     0,                         /*tp_getattr*/
     0,                         /*tp_setattr*/
     0,                         /*tp_compare*/