Eliminate unused and unnecessary rpmteBreadth() and rpmteSetBreadth()
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 17 Dec 2009 15:33:05 +0000 (17:33 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 17 Dec 2009 15:33:05 +0000 (17:33 +0200)
lib/rpmte.c
lib/rpmte.h

index 266384c..8f0f8df 100644 (file)
@@ -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);
index 312bfa5..5af099f 100644 (file)
@@ -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