]> Cypherpunks repositories - gostls13.git/commit
compress/bzip2: remove dead code in huffman.go
authorJoe Tsai <joetsai@digital-static.net>
Wed, 24 May 2017 20:52:56 +0000 (13:52 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Wed, 24 May 2017 21:56:48 +0000 (21:56 +0000)
commite0e4891827a3db12daa74859d9d487aeaa536c23
treea10edf50b9c8dc25bf5e07532be573715e05fc4a
parent67a782b8cc5b073041a7b5ab14144c922737d44f
compress/bzip2: remove dead code in huffman.go

The logic performs a series of shifts, which are useless given
that they are followed by an assignment that overrides the
value of the previous computation.

I suspect (but cannot prove) that this is leftover logic from an
original approach that attempted to store both the Huffman code
and the length within the same variable instead of using two
different variables as it currently does now.

Fixes #17949

Change-Id: Ibf6c807c6cef3b28bfdaf2b68d9bc13503ac21b2
Reviewed-on: https://go-review.googlesource.com/44091
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/compress/bzip2/huffman.go