summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-12-14 22:31:28 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-12-14 22:31:39 +0900
commit805efc5bf1411864f76d721c2c3e62d02bc315bc (patch)
tree0c8507419903c467851c6e5cc3ba2061fb0f3d45 /src
parentcdcab267660473de1621b4a1d8c8f2d4d43f05ae (diff)
downloadfzf-805efc5bf1411864f76d721c2c3e62d02bc315bc.tar.gz
Remove unused interface
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go4
-rw-r--r--src/tui/light.go3
-rw-r--r--src/tui/tcell.go4
-rw-r--r--src/tui/tui.go1
4 files changed, 0 insertions, 12 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 7ea61744..4e301594 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 3c930e26..95984542 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 455dcf13..a3ce2cb1 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 c5330849..902d13fe 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