Remove unnecessary hdr.instance() method
authorPanu Matilainen <pmatilai@redhat.com>
Sat, 21 Nov 2009 09:07:29 +0000 (11:07 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Sat, 21 Nov 2009 09:07:29 +0000 (11:07 +0200)
- this is available through tag extension now, no point having a
  separate method for it

python/header-py.c

index a0f93c1..96f49ee 100644 (file)
@@ -239,11 +239,6 @@ static PyObject * hdrFormat(hdrObject * s, PyObject * args, PyObject * kwds)
     return result;
 }
 
-static PyObject *hdrInstance(hdrObject *s)
-{
-    return Py_BuildValue("i", headerGetInstance(s->h));
-}
-
 static PyObject *hdrIsSource(hdrObject *s)
 {
     return PyBool_FromLong(headerIsSource(s->h));
@@ -335,8 +330,6 @@ static struct PyMethodDef hdr_methods[] = {
        NULL },
     {"sprintf",                (PyCFunction) hdrFormat,        METH_VARARGS|METH_KEYWORDS,
        NULL },
-    {"instance",       (PyCFunction)hdrInstance,       METH_NOARGS,
-       NULL },
     {"isSource",       (PyCFunction)hdrIsSource,       METH_NOARGS, 
        NULL },
     {"write",          (PyCFunction)hdrWrite,          METH_VARARGS|METH_KEYWORDS,