mirror of
https://github.com/restic/restic.git
synced 2025-03-04 02:28:27 +00:00
Merge pull request #5228 from greatroar/cleanup
ui/termstatus: Remove unused bytes.Buffer
This commit is contained in:
commit
72b343fe5a
1 changed files with 0 additions and 3 deletions
|
@ -2,7 +2,6 @@ package termstatus
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"bytes"
|
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
@ -22,7 +21,6 @@ type Terminal struct {
|
||||||
wr *bufio.Writer
|
wr *bufio.Writer
|
||||||
fd uintptr
|
fd uintptr
|
||||||
errWriter io.Writer
|
errWriter io.Writer
|
||||||
buf *bytes.Buffer
|
|
||||||
msg chan message
|
msg chan message
|
||||||
status chan status
|
status chan status
|
||||||
canUpdateStatus bool
|
canUpdateStatus bool
|
||||||
|
@ -60,7 +58,6 @@ func New(wr io.Writer, errWriter io.Writer, disableStatus bool) *Terminal {
|
||||||
t := &Terminal{
|
t := &Terminal{
|
||||||
wr: bufio.NewWriter(wr),
|
wr: bufio.NewWriter(wr),
|
||||||
errWriter: errWriter,
|
errWriter: errWriter,
|
||||||
buf: bytes.NewBuffer(nil),
|
|
||||||
msg: make(chan message),
|
msg: make(chan message),
|
||||||
status: make(chan status),
|
status: make(chan status),
|
||||||
closed: make(chan struct{}),
|
closed: make(chan struct{}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue