From 847319b7fc94cab682988f93da778204da164588 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 18 Aug 2017 11:57:21 +0200 Subject: [PATCH] ssh: remove unused buffer.eof return value buffer.eof always returns nil and none of the callers check the return value. Change-Id: I2053cb6e48dea3a2cd371644a1a5d1a835efda10 Reviewed-on: https://go-review.googlesource.com/56831 Reviewed-by: Han-Wen Nienhuys Run-TryBot: Han-Wen Nienhuys TryBot-Result: Gobot Gobot --- ssh/buffer.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ssh/buffer.go b/ssh/buffer.go index 6931b51..1ab07d0 100644 --- a/ssh/buffer.go +++ b/ssh/buffer.go @@ -51,13 +51,12 @@ func (b *buffer) write(buf []byte) { } // eof closes the buffer. Reads from the buffer once all -// the data has been consumed will receive os.EOF. -func (b *buffer) eof() error { +// the data has been consumed will receive io.EOF. +func (b *buffer) eof() { b.Cond.L.Lock() b.closed = true b.Cond.Signal() b.Cond.L.Unlock() - return nil } // Read reads data from the internal buffer in buf. Reads will block