From: Panu Matilainen Date: Sat, 21 Nov 2009 09:07:29 +0000 (+0200) Subject: Remove unnecessary hdr.instance() method X-Git-Tag: tznext/4.11.0.1.tizen20130304~2510 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6711bcc6b948f8f60373af42e232e160c8cb89ed;p=tools%2Flibrpm-tizen.git Remove unnecessary hdr.instance() method - this is available through tag extension now, no point having a separate method for it --- diff --git a/python/header-py.c b/python/header-py.c index a0f93c1..96f49ee 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -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,