mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-22 10:58:59 +00:00
Remove unused interface
This commit is contained in:
parent
cdcab26766
commit
805efc5bf1
@ -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
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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++ {
|
||||||
|
@ -559,7 +559,6 @@ type Window interface {
|
|||||||
DrawHBorder()
|
DrawHBorder()
|
||||||
Refresh()
|
Refresh()
|
||||||
FinishFill()
|
FinishFill()
|
||||||
Close()
|
|
||||||
|
|
||||||
X() int
|
X() int
|
||||||
Y() int
|
Y() int
|
||||||
|
Loading…
Reference in New Issue
Block a user