diff --git a/session_test.go b/session_test.go index 7f99f98..02aae39 100644 --- a/session_test.go +++ b/session_test.go @@ -740,9 +740,6 @@ func TestManyStreams_PingPong(t *testing.T) { return } - // Shrink the internal buffer! - stream.Shrink() - // Write out the 'pong' n, err = stream.Write(pong) if err != nil { @@ -791,9 +788,6 @@ func TestManyStreams_PingPong(t *testing.T) { t.Errorf("bad: %s", buf) return } - - // Shrink the buffer - stream.Shrink() } } diff --git a/stream.go b/stream.go index 037c22d..024ad70 100644 --- a/stream.go +++ b/stream.go @@ -462,7 +462,3 @@ func (s *Stream) SetWriteDeadline(t time.Time) error { } return nil } - -// Shrink is a no-op. The internal buffer automatically shrinks itself. -func (s *Stream) Shrink() { -}