From ccc69322626ed649d72248e23a2834a9860099fb Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 17 Dec 2009 17:33:05 +0200 Subject: Eliminate unused and unnecessary rpmteBreadth() and rpmteSetBreadth() --- lib/rpmte.c | 16 ---------------- lib/rpmte.h | 15 --------------- 2 files changed, 31 deletions(-) (limited to 'lib') 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 @@ -180,21 +180,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 -- cgit v1.2.3