From 5b7b35ea3ad3901a495ff378b6bfdd7d64f2ed67 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 8 Mar 2026 02:30:36 +0800 Subject: internal/compress: Remove InputConsumed/Progress --- internal/compress/flate/inflate.go | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'internal/compress/flate') 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 { -- cgit v1.3.1-10-gc9f91