summaryrefslogtreecommitdiff
path: root/lib/rpmal.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-11-08 16:28:35 +0000
committerjbj <devnull@localhost>2001-11-08 16:28:35 +0000
commit0467af9ab587ca2f8bcb376d53a30d7857d7809a (patch)
tree53613cc580f245e29f94e8e07dfd7a152d18b370 /lib/rpmal.c
parentae2e9b1bad7d82c423fc5a2192e05ca4f0f6d9fb (diff)
downloadlibrpm-tizen-0467af9ab587ca2f8bcb376d53a30d7857d7809a.tar.gz
librpm-tizen-0467af9ab587ca2f8bcb376d53a30d7857d7809a.tar.bz2
librpm-tizen-0467af9ab587ca2f8bcb376d53a30d7857d7809a.zip
Remove dead code.
CVS patchset: 5161 CVS date: 2001/11/08 16:28:35
Diffstat (limited to 'lib/rpmal.c')
-rw-r--r--lib/rpmal.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/rpmal.c b/lib/rpmal.c
index 0adbd5c0a..4dc7e0a2e 100644
--- a/lib/rpmal.c
+++ b/lib/rpmal.c
@@ -34,9 +34,6 @@ typedef /*@abstract@*/ struct availableIndex_s * availableIndex;
/*@access fnpyKey@*/
/*@access rpmFNSet@*/
-#ifdef DYING
-/*@access rpmDepSet@*/
-#endif
/** \ingroup rpmdep
* Info about a single package to be installed.
@@ -357,10 +354,6 @@ static int fieCompare(const void * one, const void * two)
void alDelPackage(availableList al, alKey pkgKey)
{
-#ifdef DYING
- HGE_t hge = (HGE_t)headerGetEntryMinMemory;
- HFD_t hfd = headerFreeData;
-#endif
availablePackage alp;
rpmFNSet fns;
alNum pkgNum = alKey2Num(al, pkgKey);
@@ -378,11 +371,6 @@ fprintf(stderr, "*** del %p[%d] %s-%s-%s\n", al->list, pkgNum, alp->name, alp->v
if ((fns = alp->fns) != NULL)
if (fns->BN != NULL && fns->Count > 0) {
int origNumDirs = al->numDirs;
-#ifdef DYING
- const char ** dirNames;
- int_32 numDirs;
- rpmTagType dnt;
-#endif
int dirNum;
dirInfo dieNeedle =
memset(alloca(sizeof(*dieNeedle)), 0, sizeof(*dieNeedle));
@@ -390,10 +378,6 @@ fprintf(stderr, "*** del %p[%d] %s-%s-%s\n", al->list, pkgNum, alp->name, alp->v
int last;
int i;
-#ifdef DYING
- xx = hge(alp->h, RPMTAG_DIRNAMES, &dnt, (void **) &dirNames, &numDirs);
-#endif
-
/* XXX FIXME: We ought to relocate the directory list here */
if (al->dirs != NULL)
@@ -440,10 +424,6 @@ fprintf(stderr, "*** del %p[%d] %s-%s-%s\n", al->list, pkgNum, alp->name, alp->v
else
al->dirs = _free(al->dirs);
}
-
-#ifdef DYING
- dirNames = hfd(dirNames, dnt);
-#endif
}
alp->provides = dsFree(alp->provides);
@@ -462,9 +442,6 @@ alKey alAddPackage(availableList al, alKey pkgKey, fnpyKey key, Header h)
{
int scareMem = 1;
HGE_t hge = (HGE_t)headerGetEntryMinMemory;
-#ifdef DYING
- HFD_t hfd = headerFreeData;
-#endif
availablePackage alp;
alNum pkgNum = alKey2Num(al, pkgKey);
int xx;
@@ -572,10 +549,6 @@ fprintf(stderr, "*** add %p[%d] %s-%s-%s\n", al->list, pkgNum, alp->name, alp->v
}
}
-#ifdef DYING
- fns->DN = hfd(fns->DN, fns->DNt);
-#endif
-
last = 0;
for (first = 0; first < fns->Count; first = last + 1) {
fileIndexEntry fie;