diff --git a/src/compress/bzip2/huffman.go b/src/compress/bzip2/huffman.go index 9d574b9bde..dbba9a58b5 100644 --- a/src/compress/bzip2/huffman.go +++ b/src/compress/bzip2/huffman.go @@ -108,10 +108,6 @@ func newHuffmanTree(lengths []uint8) (huffmanTree, error) { codes := huffmanCodes(make([]huffmanCode, len(lengths))) for i := len(pairs) - 1; i >= 0; i-- { if length > pairs[i].length { - // If the code length decreases we shift in order to - // zero any bits beyond the end of the code. - length >>= 32 - pairs[i].length - length <<= 32 - pairs[i].length length = pairs[i].length } codes[i].code = code