diff options
| author | 2026-03-08 02:30:36 +0800 | |
|---|---|---|
| committer | 2026-03-08 02:30:36 +0800 | |
| commit | 5b7b35ea3ad3901a495ff378b6bfdd7d64f2ed67 (patch) | |
| tree | 02c099e6097cf63bfdd6444d08f6d8cbf39d4999 /internal/compress/flate | |
| parent | protocol/v0v1/server/receivepack: Nolint nestif here (diff) | |
| signature | No signature | |
internal/compress: Remove InputConsumed/Progress
Diffstat (limited to 'internal/compress/flate')
| -rw-r--r-- | internal/compress/flate/inflate.go | 13 |
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 { |
