Merge pull request #5228 from greatroar/cleanup

ui/termstatus: Remove unused bytes.Buffer
This commit is contained in:
Michael Eischer 2025-02-01 16:58:54 +01:00 committed by GitHub
commit 72b343fe5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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{}),