Skip to content

Commit 454b326

Browse files
committed
delete gzip support
1 parent eabc8c0 commit 454b326

File tree

2 files changed

+0
-52
lines changed

2 files changed

+0
-52
lines changed

compress/compress.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const (
2323
SNAPPY = iota
2424
S2
2525
ZSTD
26-
GZIP
2726
)
2827

2928
var Algorithm = S2
@@ -36,8 +35,6 @@ func Decompress(dst, src []byte) ([]byte, error) {
3635
return S2Decompress(dst, src)
3736
case ZSTD:
3837
return ZSTDDecompress(dst, src)
39-
case GZIP:
40-
return GzipDecompress(dst, src)
4138
default:
4239
return nil, errors.New("unknown compress algorithm")
4340
}
@@ -51,8 +48,6 @@ func Compress(dst, src []byte) ([]byte, error) {
5148
return S2Compress(dst, src)
5249
case ZSTD:
5350
return ZSTDCompress(dst, src, ZSTDCompressionLevel)
54-
case GZIP:
55-
return GzipCompress(dst, src)
5651
default:
5752
return nil, errors.New("unknown compress algorithm")
5853
}

compress/gzip.go

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)