summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-12-17 17:33:05 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-12-17 17:33:05 +0200
commitccc69322626ed649d72248e23a2834a9860099fb (patch)
treed1732b8bee59080e4e9979b16cc30161b113a70c /lib
parent80853dbe99a772cdceb57c4b5f39e270c0319795 (diff)
downloadrpm-ccc69322626ed649d72248e23a2834a9860099fb.tar.gz
rpm-ccc69322626ed649d72248e23a2834a9860099fb.tar.bz2
rpm-ccc69322626ed649d72248e23a2834a9860099fb.zip
Eliminate unused and unnecessary rpmteBreadth() and rpmteSetBreadth()
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmte.c16
-rw-r--r--lib/rpmte.h15
2 files changed, 0 insertions, 31 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c
index 266384cf4..8f0f8dff8 100644
--- a/lib/rpmte.c
+++ b/lib/rpmte.c
@@ -42,7 +42,6 @@ struct rpmte_s {
int npreds; /*!< No. of predecessors. */
int tree; /*!< Tree index. */
int depth; /*!< Depth in dependency tree. */
- int breadth; /*!< Breadth in dependency tree. */
unsigned int db_instance; /*!< Database instance (of removed pkgs) */
tsortInfo tsi; /*!< Dependency ordering chains. */
@@ -421,21 +420,6 @@ int rpmteSetDepth(rpmte te, int ndepth)
return odepth;
}
-int rpmteBreadth(rpmte te)
-{
- return (te != NULL ? te->depth : 0);
-}
-
-int rpmteSetBreadth(rpmte te, int nbreadth)
-{
- int obreadth = 0;
- if (te != NULL) {
- obreadth = te->breadth;
- te->breadth = nbreadth;
- }
- return obreadth;
-}
-
int rpmteNpreds(rpmte te)
{
return (te != NULL ? te->npreds : 0);
diff --git a/lib/rpmte.h b/lib/rpmte.h
index 312bfa5f2..5af099f13 100644
--- a/lib/rpmte.h
+++ b/lib/rpmte.h
@@ -181,21 +181,6 @@ int rpmteDepth(rpmte te);
int rpmteSetDepth(rpmte te, int ndepth);
/** \ingroup rpmte
- * Retrieve dependency tree breadth of transaction element.
- * @param te transaction element
- * @return breadth
- */
-int rpmteBreadth(rpmte te);
-
-/** \ingroup rpmte
- * Set dependency tree breadth of transaction element.
- * @param te transaction element
- * @param nbreadth new breadth
- * @return previous breadth
- */
-int rpmteSetBreadth(rpmte te, int nbreadth);
-
-/** \ingroup rpmte
* Retrieve tsort no. of predecessors of transaction element.
* @param te transaction element
* @return no. of predecessors