From 8e53d330614fb5c526372e6bdf508341bb6f154c Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 26 Sep 2022 18:26:36 -0500 Subject: [PATCH] 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 Acked-by: Robin Jarry --- widgets/terminal.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/widgets/terminal.go b/widgets/terminal.go index 5c67e32..cd90ed7 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -86,10 +86,6 @@ func (term *Terminal) Destroy() { } func (term *Terminal) Invalidate() { - term.invalidate() -} - -func (term *Terminal) invalidate() { term.DoInvalidate(term) } @@ -166,7 +162,7 @@ func (term *Terminal) Focus(focus bool) { _, x, y, style := term.vterm.GetCursor() term.ctx.SetCursor(x, y) term.ctx.SetCursorStyle(style) - term.invalidate() + term.Invalidate() } } }