From ba24e92062f1a9b38065d503fd1dde749c27a56c Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 7 Oct 2022 11:00:31 -0500 Subject: invalidatable: cleanup dead code Remove invalidatable type and all associated calls. All items can directly invalidate the UI. Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- lib/ui/textinput.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/ui/textinput.go') diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index d99871ce..2a8b7c73 100644 --- a/lib/ui/textinput.go +++ b/lib/ui/textinput.go @@ -17,7 +17,6 @@ import ( // TODO: scrolling type TextInput struct { - Invalidatable sync.Mutex cells int ctx *Context @@ -90,7 +89,7 @@ func (ti *TextInput) Set(value string) *TextInput { } func (ti *TextInput) Invalidate() { - ti.DoInvalidate(ti) + Invalidate() } func (ti *TextInput) Draw(ctx *Context) { @@ -530,5 +529,3 @@ func findStem(words []string) string { func (c *completions) Focus(_ bool) {} func (c *completions) Invalidate() {} - -func (c *completions) OnInvalidate(_ func(Drawable)) {} -- cgit