diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-12-18 12:20:05 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-12-21 09:19:03 +0200 |
commit | ecf45122398c8f081f51b7574ec6cafb6ca2051d (patch) | |
tree | a0ff5004c4ed3ba0b1614dc6d2841d27061b3745 /python | |
parent | 6e28e8fdba7260b3a9dd2824ac2b44d1b658c876 (diff) | |
download | librpm-tizen-ecf45122398c8f081f51b7574ec6cafb6ca2051d.tar.gz librpm-tizen-ecf45122398c8f081f51b7574ec6cafb6ca2051d.tar.bz2 librpm-tizen-ecf45122398c8f081f51b7574ec6cafb6ca2051d.zip |
Eliminate the rpmte tsort info manipulation public API
- its not useful outside the ordering internals and API users have no
business messing with it
Diffstat (limited to 'python')
-rw-r--r-- | python/rpmte-py.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/python/rpmte-py.c b/python/rpmte-py.c index 48805dbf6..8cc247c15 100644 --- a/python/rpmte-py.c +++ b/python/rpmte-py.c @@ -29,11 +29,7 @@ * - te.NEVR() Return package name-version-release. * - te.Color() Return package color bits. * - te.PkgFileSize() Return no. of bytes in package file (approx). - * - te.Depth() Return the level in the dependency tree (after ordering). - * - te.Npreds() Return the number of package prerequisites (after ordering). - * - te.Degree() Return the parent's degree + 1. * - te.Parent() Return the parent element index. - * - te.Tree() Return the root dependency tree index. * - te.AddedKey() Return the added package index (TR_ADDED). * - te.DependsOnKey() Return the package index for the added package (TR_REMOVED). * - te.DBOffset() Return the Packages database instance number (TR_REMOVED) @@ -117,34 +113,11 @@ rpmte_PkgFileSize(rpmteObject * s) } static PyObject * -rpmte_Depth(rpmteObject * s) -{ - return Py_BuildValue("i", rpmteDepth(s->te)); -} - -static PyObject * -rpmte_Npreds(rpmteObject * s) -{ - return Py_BuildValue("i", rpmteNpreds(s->te)); -} - -static PyObject * -rpmte_Degree(rpmteObject * s) -{ - return Py_BuildValue("i", rpmteDegree(s->te)); -} - -static PyObject * rpmte_Parent(rpmteObject * s) { return Py_BuildValue("i", rpmteParent(s->te)); } -static PyObject * -rpmte_Tree(rpmteObject * s) -{ - return Py_BuildValue("i", rpmteTree(s->te)); -} /* static PyObject * rpmte_DependsOnKey(rpmteObject * s) @@ -234,16 +207,8 @@ static struct PyMethodDef rpmte_methods[] = { NULL}, {"PkgFileSize",(PyCFunction)rpmte_PkgFileSize, METH_NOARGS, NULL}, - {"Depth", (PyCFunction)rpmte_Depth, METH_NOARGS, - NULL}, - {"Npreds", (PyCFunction)rpmte_Npreds, METH_NOARGS, - NULL}, - {"Degree", (PyCFunction)rpmte_Degree, METH_NOARGS, - NULL}, {"Parent", (PyCFunction)rpmte_Parent, METH_NOARGS, NULL}, - {"Tree", (PyCFunction)rpmte_Tree, METH_NOARGS, - NULL}, /* {"DependsOnKey",(PyCFunction)rpmte_DependsOnKey, METH_NOARGS, NULL}, */ {"DBOffset",(PyCFunction)rpmte_DBOffset, METH_NOARGS, |