From c1781e0abbf4c3972f2b99c84bda2902f3ac393a Mon Sep 17 00:00:00 2001 From: greatroar <61184462+greatroar@users.noreply.github.com> Date: Sat, 1 Feb 2025 08:14:01 +0100 Subject: [PATCH] ui/termstatus: Remove unused bytes.Buffer --- internal/ui/termstatus/status.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/ui/termstatus/status.go b/internal/ui/termstatus/status.go index e6533095871..d3674ac09be 100644 --- a/internal/ui/termstatus/status.go +++ b/internal/ui/termstatus/status.go @@ -2,7 +2,6 @@ package termstatus import ( "bufio" - "bytes" "context" "fmt" "io" @@ -22,7 +21,6 @@ type Terminal struct { wr *bufio.Writer fd uintptr errWriter io.Writer - buf *bytes.Buffer msg chan message status chan status canUpdateStatus bool @@ -60,7 +58,6 @@ func New(wr io.Writer, errWriter io.Writer, disableStatus bool) *Terminal { t := &Terminal{ wr: bufio.NewWriter(wr), errWriter: errWriter, - buf: bytes.NewBuffer(nil), msg: make(chan message), status: make(chan status), closed: make(chan struct{}),