terminal: remove invalidate method

The terminal widget has two invalidation methods, one exported and one
private. The private one does nothing special.

Remove the private method and only use the exported method.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Tim Culverhouse 2022-09-26 18:26:36 -05:00 committed by Robin Jarry
parent 83136234a4
commit 8e53d33061

View file

@ -86,10 +86,6 @@ func (term *Terminal) Destroy() {
} }
func (term *Terminal) Invalidate() { func (term *Terminal) Invalidate() {
term.invalidate()
}
func (term *Terminal) invalidate() {
term.DoInvalidate(term) term.DoInvalidate(term)
} }
@ -166,7 +162,7 @@ func (term *Terminal) Focus(focus bool) {
_, x, y, style := term.vterm.GetCursor() _, x, y, style := term.vterm.GetCursor()
term.ctx.SetCursor(x, y) term.ctx.SetCursor(x, y)
term.ctx.SetCursorStyle(style) term.ctx.SetCursorStyle(style)
term.invalidate() term.Invalidate()
} }
} }
} }