From 83dd4ff69631f8def367920b3353e112b93fcc87 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 3 Feb 2018 03:17:48 +0100 Subject: bzip2: delete write-only fave[] array Signed-off-by: Denys Vlasenko --- archival/libarchive/bz/compress.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c index ab0c5d9..377f2f1 100644 --- a/archival/libarchive/bz/compress.c +++ b/archival/libarchive/bz/compress.c @@ -281,7 +281,6 @@ void sendMTFValues(EState* s) #define len_pack sendMTFValues__len_pack unsigned /*uint16_t*/ cost[BZ_N_GROUPS]; - int32_t fave[BZ_N_GROUPS]; uint16_t* mtfv = s->mtfv; @@ -349,9 +348,6 @@ void sendMTFValues(EState* s) * Iterate up to BZ_N_ITERS times to improve the tables. */ for (iter = 0; iter < BZ_N_ITERS; iter++) { - for (t = 0; t < nGroups; t++) - fave[t] = 0; - for (t = 0; t < nGroups; t++) { unsigned v; for (v = 0; v < alphaSize; v++) @@ -440,7 +436,6 @@ void sendMTFValues(EState* s) bt = t; } } - fave[bt]++; s->selector[nSelectors] = bt; nSelectors++; -- cgit v1.1