projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a2c97b
)
bzip2: delete write-only fave[] array
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 3 Feb 2018 02:17:48 +0000
(
03:17
+0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 3 Feb 2018 02:17:48 +0000
(
03:17
+0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/bz/compress.c
patch
|
blob
|
history
diff --git
a/archival/libarchive/bz/compress.c
b/archival/libarchive/bz/compress.c
index ab0c5d9ec859479046f0471b4103cfde83ad2857..377f2f1663161d89b99ddacce35c3a0a6bc142af 100644
(file)
--- 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++;