summaryrefslogtreecommitdiff
path: root/vendor/github.com/ulikunitz/xz/lzma/directcodec.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-02-01 15:12:23 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2021-02-02 14:31:02 -0500
commit06fe589a0f65c05324431b1e4fb541f926ec2a6f (patch)
tree8ef7bfadbb41f9af1bac12b6a2605592c6d02a4b /vendor/github.com/ulikunitz/xz/lzma/directcodec.go
parent978c005869eeca40959e6d6d4a52c5ba9059f827 (diff)
downloadpodman-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/directcodec.go')
-rw-r--r--vendor/github.com/ulikunitz/xz/lzma/directcodec.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/vendor/github.com/ulikunitz/xz/lzma/directcodec.go b/vendor/github.com/ulikunitz/xz/lzma/directcodec.go
index e6e0c6ddf..064642831 100644
--- a/vendor/github.com/ulikunitz/xz/lzma/directcodec.go
+++ b/vendor/github.com/ulikunitz/xz/lzma/directcodec.go
@@ -4,21 +4,10 @@
package lzma
-import "fmt"
-
// directCodec allows the encoding and decoding of values with a fixed number
// of bits. The number of bits must be in the range [1,32].
type directCodec byte
-// makeDirectCodec creates a directCodec. The function panics if the number of
-// bits is not in the range [1,32].
-func makeDirectCodec(bits int) directCodec {
- if !(1 <= bits && bits <= 32) {
- panic(fmt.Errorf("bits=%d out of range", bits))
- }
- return directCodec(bits)
-}
-
// Bits returns the number of bits supported by this codec.
func (dc directCodec) Bits() int {
return int(dc)