From 652125367c9a98b08ff02da9008db66f39be9741 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sat, 23 May 2020 07:53:13 +0700 Subject: [PATCH] remove unused readOffset member variable in receiveStream --- receive_stream.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/receive_stream.go b/receive_stream.go index ce00cc46..33b6fdec 100644 --- a/receive_stream.go +++ b/receive_stream.go @@ -29,7 +29,6 @@ type receiveStream struct { sender streamSender frameQueue *frameSorter - readOffset protocol.ByteCount finalOffset protocol.ByteCount currentFrame []byte @@ -169,7 +168,6 @@ func (s *receiveStream) readImpl(p []byte) (bool /*stream completed */, int, err m := copy(p[bytesRead:], s.currentFrame[s.readPosInFrame:]) s.readPosInFrame += m bytesRead += m - s.readOffset += protocol.ByteCount(m) s.mutex.Lock() // when a RESET_STREAM was received, the was already informed about the final byteOffset for this stream