Remove unused interface

This commit is contained in:
Junegunn Choi 2024-12-14 22:31:28 +09:00
parent cdcab26766
commit 805efc5bf1
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
4 changed files with 0 additions and 12 deletions

View File

@ -1539,20 +1539,16 @@ func (t *Terminal) resizeWindows(forcePreview bool, redrawBorder bool) {
t.prevLines = make([]itemLine, screenHeight) t.prevLines = make([]itemLine, screenHeight)
if t.border != nil && redrawBorder { if t.border != nil && redrawBorder {
t.border.Close()
t.border = nil t.border = nil
} }
if t.window != nil { if t.window != nil {
t.window.Close()
t.window = nil t.window = nil
} }
if t.pborder != nil { if t.pborder != nil {
t.pborder.Close()
t.pborder = nil t.pborder = nil
} }
hadPreviewWindow := t.hasPreviewWindow() hadPreviewWindow := t.hasPreviewWindow()
if hadPreviewWindow { if hadPreviewWindow {
t.pwindow.Close()
t.pwindow = nil t.pwindow = nil
} }
// Reset preview version so that full redraw occurs // Reset preview version so that full redraw occurs

View File

@ -935,9 +935,6 @@ func (w *LightWindow) Height() int {
func (w *LightWindow) Refresh() { func (w *LightWindow) Refresh() {
} }
func (w *LightWindow) Close() {
}
func (w *LightWindow) X() int { func (w *LightWindow) X() int {
return w.posx return w.posx
} }

View File

@ -555,10 +555,6 @@ func (r *FullscreenRenderer) NewWindow(top int, left int, width int, height int,
return w return w
} }
func (w *TcellWindow) Close() {
// TODO
}
func fill(x, y, w, h int, n ColorPair, r rune) { func fill(x, y, w, h int, n ColorPair, r rune) {
for ly := 0; ly <= h; ly++ { for ly := 0; ly <= h; ly++ {
for lx := 0; lx <= w; lx++ { for lx := 0; lx <= w; lx++ {

View File

@ -559,7 +559,6 @@ type Window interface {
DrawHBorder() DrawHBorder()
Refresh() Refresh()
FinishFill() FinishFill()
Close()
X() int X() int
Y() int Y() int