diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-03 03:17:48 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-03 03:17:48 +0100 |
| commit | 83dd4ff69631f8def367920b3353e112b93fcc87 (patch) | |
| tree | 1b66fbea203b4348ebfa7706d4e075083d6b0510 | |
| parent | 3a2c97bd123477aba8ea5c2d88f374d53f84b3de (diff) | |
| download | busybox-w32-83dd4ff69631f8def367920b3353e112b93fcc87.tar.gz busybox-w32-83dd4ff69631f8def367920b3353e112b93fcc87.tar.bz2 busybox-w32-83dd4ff69631f8def367920b3353e112b93fcc87.zip | |
bzip2: delete write-only fave[] array
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | archival/libarchive/bz/compress.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c index ab0c5d9ec..377f2f166 100644 --- a/archival/libarchive/bz/compress.c +++ b/archival/libarchive/bz/compress.c | |||
| @@ -281,7 +281,6 @@ void sendMTFValues(EState* s) | |||
| 281 | #define len_pack sendMTFValues__len_pack | 281 | #define len_pack sendMTFValues__len_pack |
| 282 | 282 | ||
| 283 | unsigned /*uint16_t*/ cost[BZ_N_GROUPS]; | 283 | unsigned /*uint16_t*/ cost[BZ_N_GROUPS]; |
| 284 | int32_t fave[BZ_N_GROUPS]; | ||
| 285 | 284 | ||
| 286 | uint16_t* mtfv = s->mtfv; | 285 | uint16_t* mtfv = s->mtfv; |
| 287 | 286 | ||
| @@ -349,9 +348,6 @@ void sendMTFValues(EState* s) | |||
| 349 | * Iterate up to BZ_N_ITERS times to improve the tables. | 348 | * Iterate up to BZ_N_ITERS times to improve the tables. |
| 350 | */ | 349 | */ |
| 351 | for (iter = 0; iter < BZ_N_ITERS; iter++) { | 350 | for (iter = 0; iter < BZ_N_ITERS; iter++) { |
| 352 | for (t = 0; t < nGroups; t++) | ||
| 353 | fave[t] = 0; | ||
| 354 | |||
| 355 | for (t = 0; t < nGroups; t++) { | 351 | for (t = 0; t < nGroups; t++) { |
| 356 | unsigned v; | 352 | unsigned v; |
| 357 | for (v = 0; v < alphaSize; v++) | 353 | for (v = 0; v < alphaSize; v++) |
| @@ -440,7 +436,6 @@ void sendMTFValues(EState* s) | |||
| 440 | bt = t; | 436 | bt = t; |
| 441 | } | 437 | } |
| 442 | } | 438 | } |
| 443 | fave[bt]++; | ||
| 444 | s->selector[nSelectors] = bt; | 439 | s->selector[nSelectors] = bt; |
| 445 | nSelectors++; | 440 | nSelectors++; |
| 446 | 441 | ||
