From 94d3103d7bd299f2dee31e3002cfb7c0ca030389 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 26 May 2008 10:29:30 +0300 Subject: [PATCH] Kick out fpLookupHeader(), it's been unused since 1999... --- lib/fprint.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/lib/fprint.c b/lib/fprint.c index 2f757dd..d31a694 100644 --- a/lib/fprint.c +++ b/lib/fprint.c @@ -233,33 +233,3 @@ void fpLookupList(fingerPrintCache cache, const char ** dirNames, } } } - -#ifdef UNUSED -/** - * Return finger prints of all file names in header. - * @warning: scareMemory is assumed! - * @param cache pointer to fingerprint cache - * @param h package header - * @retval fpList pointer to array of finger prints - */ -static -void fpLookupHeader(fingerPrintCache cache, Header h, fingerPrint * fpList); -{ - HGE_t hge = (HGE_t)headerGetEntryMinMemory; - HFD_t hfd = headerFreeData; - const char ** baseNames, ** dirNames; - rpmTagTypebnt, dnt; - uint32_t * dirIndexes; - int fileCount; - int xx; - - if (!hge(h, RPMTAG_BASENAMES, &bnt, (rpm_data_t *) &baseNames, &fileCount)) - return; - - xx = hge(h, RPMTAG_DIRNAMES, &dnt, (rpm_data_t *) &dirNames, NULL); - xx = hge(h, RPMTAG_DIRINDEXES, NULL, (rpm_data_t *) &dirIndexes, NULL); - fpLookupList(cache, dirNames, baseNames, dirIndexes, fileCount, fpList); - dirNames = hfd(dirNames, dnt); - baseNames = hfd(baseNames, bnt); -} -#endif -- 2.7.4