mirror of
https://github.com/restic/restic.git
synced 2025-08-12 11:47:43 +00:00
Remove unused public method ui.linesWriter.Flush
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user