diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-02-01 15:12:23 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-02-02 14:31:02 -0500 |
commit | 06fe589a0f65c05324431b1e4fb541f926ec2a6f (patch) | |
tree | 8ef7bfadbb41f9af1bac12b6a2605592c6d02a4b /vendor/github.com/ulikunitz/xz/lzma/rangecodec.go | |
parent | 978c005869eeca40959e6d6d4a52c5ba9059f827 (diff) | |
download | podman-06fe589a0f65c05324431b1e4fb541f926ec2a6f.tar.gz podman-06fe589a0f65c05324431b1e4fb541f926ec2a6f.tar.bz2 podman-06fe589a0f65c05324431b1e4fb541f926ec2a6f.zip |
Bump to containers/common v0.33.3
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/ulikunitz/xz/lzma/rangecodec.go')
-rw-r--r-- | vendor/github.com/ulikunitz/xz/lzma/rangecodec.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/vendor/github.com/ulikunitz/xz/lzma/rangecodec.go b/vendor/github.com/ulikunitz/xz/lzma/rangecodec.go index 7189a0377..7b299abfe 100644 --- a/vendor/github.com/ulikunitz/xz/lzma/rangecodec.go +++ b/vendor/github.com/ulikunitz/xz/lzma/rangecodec.go @@ -131,32 +131,6 @@ type rangeDecoder struct { code uint32 } -// init initializes the range decoder, by reading from the byte reader. -func (d *rangeDecoder) init() error { - d.nrange = 0xffffffff - d.code = 0 - - b, err := d.br.ReadByte() - if err != nil { - return err - } - if b != 0 { - return errors.New("newRangeDecoder: first byte not zero") - } - - for i := 0; i < 4; i++ { - if err = d.updateCode(); err != nil { - return err - } - } - - if d.code >= d.nrange { - return errors.New("newRangeDecoder: d.code >= d.nrange") - } - - return nil -} - // newRangeDecoder initializes a range decoder. It reads five bytes from the // reader and therefore may return an error. func newRangeDecoder(br io.ByteReader) (d *rangeDecoder, err error) { |