From 805efc5bf1411864f76d721c2c3e62d02bc315bc Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 14 Dec 2024 22:31:28 +0900 Subject: [PATCH] Remove unused interface --- src/terminal.go | 4 ---- src/tui/light.go | 3 --- src/tui/tcell.go | 4 ---- src/tui/tui.go | 1 - 4 files changed, 12 deletions(-) diff --git a/src/terminal.go b/src/terminal.go index 7ea6174..4e30159 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1539,20 +1539,16 @@ func (t *Terminal) resizeWindows(forcePreview bool, redrawBorder bool) { t.prevLines = make([]itemLine, screenHeight) if t.border != nil && redrawBorder { - t.border.Close() t.border = nil } if t.window != nil { - t.window.Close() t.window = nil } if t.pborder != nil { - t.pborder.Close() t.pborder = nil } hadPreviewWindow := t.hasPreviewWindow() if hadPreviewWindow { - t.pwindow.Close() t.pwindow = nil } // Reset preview version so that full redraw occurs diff --git a/src/tui/light.go b/src/tui/light.go index 3c930e2..9598454 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -935,9 +935,6 @@ func (w *LightWindow) Height() int { func (w *LightWindow) Refresh() { } -func (w *LightWindow) Close() { -} - func (w *LightWindow) X() int { return w.posx } diff --git a/src/tui/tcell.go b/src/tui/tcell.go index 455dcf1..a3ce2cb 100644 --- a/src/tui/tcell.go +++ b/src/tui/tcell.go @@ -555,10 +555,6 @@ func (r *FullscreenRenderer) NewWindow(top int, left int, width int, height int, return w } -func (w *TcellWindow) Close() { - // TODO -} - func fill(x, y, w, h int, n ColorPair, r rune) { for ly := 0; ly <= h; ly++ { for lx := 0; lx <= w; lx++ { diff --git a/src/tui/tui.go b/src/tui/tui.go index c533084..902d13f 100644 --- a/src/tui/tui.go +++ b/src/tui/tui.go @@ -559,7 +559,6 @@ type Window interface { DrawHBorder() Refresh() FinishFill() - Close() X() int Y() int