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 /widgets/dirlist.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 'widgets/dirlist.go')
-rw-r--r-- | widgets/dirlist.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go index 0f86a081..70550394 100644 --- a/widgets/dirlist.go +++ b/widgets/dirlist.go @@ -48,7 +48,6 @@ type DirectoryLister interface { } type DirectoryList struct { - ui.Invalidatable sync.Mutex Scrollable aercConf *config.AercConfig @@ -199,7 +198,7 @@ func (dirlist *DirectoryList) Selected() string { } func (dirlist *DirectoryList) Invalidate() { - dirlist.DoInvalidate(dirlist) + ui.Invalidate() } func (dirlist *DirectoryList) getDirString(name string, width int, recentUnseen func() string) string { |