• Joe Tsai's avatar
    compress/bzip2: remove dead code in huffman.go · e0e48918
    Joe Tsai authored
    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/44091Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    e0e48918
huffman.go 7.32 KB