aboutsummaryrefslogtreecommitdiff
path: root/internal/compress/flate
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-08 02:30:36 +0800
committerGravatar Runxi Yu2026-03-08 02:30:36 +0800
commit5b7b35ea3ad3901a495ff378b6bfdd7d64f2ed67 (patch)
tree02c099e6097cf63bfdd6444d08f6d8cbf39d4999 /internal/compress/flate
parentprotocol/v0v1/server/receivepack: Nolint nestif here (diff)
signatureNo signature
internal/compress: Remove InputConsumed/Progress
Diffstat (limited to 'internal/compress/flate')
-rw-r--r--internal/compress/flate/inflate.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/internal/compress/flate/inflate.go b/internal/compress/flate/inflate.go
index eeee6ab7..f12f1e77 100644
--- a/internal/compress/flate/inflate.go
+++ b/internal/compress/flate/inflate.go
@@ -288,14 +288,6 @@ type Reader interface {
io.ByteReader
}
-// InputProgress reports compressed input bytes consumed by inflate state.
-//
-// InputConsumed returns bytes that have been consumed by the decompressor's
-// parser and state machine, not bytes merely read ahead from the source.
-type InputProgress interface {
- InputConsumed() int64
-}
-
type step uint8
const (
@@ -354,11 +346,6 @@ type decompressor struct {
flushMode flushMode
}
-// InputConsumed returns compressed input bytes consumed by receiver.
-func (f *decompressor) InputConsumed() int64 {
- return f.roffset
-}
-
func (f *decompressor) nextBlock() {
for f.nb < 1+2 {
if f.err = f.moreBits(); f.err != nil {