From 7c0b6a82db524b7e2e6711a7cee190ec532a2ca8 Mon Sep 17 00:00:00 2001 From: greatroar <@> Date: Sat, 17 Oct 2020 20:15:30 +0200 Subject: [PATCH] Remove unused public method ui.linesWriter.Flush --- internal/ui/stdio_wrapper.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/ui/stdio_wrapper.go b/internal/ui/stdio_wrapper.go index eccaefb7b..a3b5c178f 100644 --- a/internal/ui/stdio_wrapper.go +++ b/internal/ui/stdio_wrapper.go @@ -74,13 +74,9 @@ func (w *lineWriter) Write(data []byte) (n int, err error) { return n, err } -func (w *lineWriter) Flush() error { +func (w *lineWriter) Close() error { if w.buf.Len() > 0 { w.print(string(append(w.buf.Bytes(), '\n'))) } return nil } - -func (w *lineWriter) Close() error { - return w.Flush() -}