diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-10-07 11:00:31 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-10-12 22:16:40 +0200 |
commit | ba24e92062f1a9b38065d503fd1dde749c27a56c (patch) | |
tree | d1a2981f8f9bda50a070b50c688388fe2130f770 /lib/ui/interfaces.go | |
parent | 34014d3ceeebe8a9c131213fa56d1977fbc26b4a (diff) | |
download | aerc-ba24e92062f1a9b38065d503fd1dde749c27a56c.tar.gz |
invalidatable: cleanup dead code
Remove invalidatable type and all associated calls. All items can
directly invalidate the UI.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/ui/interfaces.go')
-rw-r--r-- | lib/ui/interfaces.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ui/interfaces.go b/lib/ui/interfaces.go index 8a62ecf0..757f81c9 100644 --- a/lib/ui/interfaces.go +++ b/lib/ui/interfaces.go @@ -12,10 +12,7 @@ type AercMsg interface{} type Drawable interface { // Called when this renderable should draw itself. Draw(ctx *Context) - // Specifies a function to call when this cell needs to be redrawn. The - // callback may be called in any goroutine. - OnInvalidate(callback func(d Drawable)) - // Invalidates the drawable. This can be called from any goroutine. + // Invalidates the UI. This can be called from any goroutine. Invalidate() } |