Commit a8f2d8b7 authored by Marten Seemann's avatar Marten Seemann

remove unused Stream.Shrink() method

parent 35dde006
...@@ -740,9 +740,6 @@ func TestManyStreams_PingPong(t *testing.T) { ...@@ -740,9 +740,6 @@ func TestManyStreams_PingPong(t *testing.T) {
return return
} }
// Shrink the internal buffer!
stream.Shrink()
// Write out the 'pong' // Write out the 'pong'
n, err = stream.Write(pong) n, err = stream.Write(pong)
if err != nil { if err != nil {
...@@ -791,9 +788,6 @@ func TestManyStreams_PingPong(t *testing.T) { ...@@ -791,9 +788,6 @@ func TestManyStreams_PingPong(t *testing.T) {
t.Errorf("bad: %s", buf) t.Errorf("bad: %s", buf)
return return
} }
// Shrink the buffer
stream.Shrink()
} }
} }
......
...@@ -462,7 +462,3 @@ func (s *Stream) SetWriteDeadline(t time.Time) error { ...@@ -462,7 +462,3 @@ func (s *Stream) SetWriteDeadline(t time.Time) error {
} }
return nil return nil
} }
// Shrink is a no-op. The internal buffer automatically shrinks itself.
func (s *Stream) Shrink() {
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment