aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui/interfaces.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-10-10 00:36:02 +0200
committerRobin Jarry <robin@jarry.cc>2023-10-11 10:21:56 +0200
commit1300b2c81bf96ca143ded90a7f6af130006a516b (patch)
treeafb65be011e1c6bb454a3075313c36bb9110ac5b /lib/ui/interfaces.go
parent34650131379a4542538da63751a89588d2f2cc85 (diff)
downloadaerc-1300b2c81bf96ca143ded90a7f6af130006a516b.tar.gz
ui: export global functions
There is no need for an UI object. The Aerc.ui field is unused. And there is a single instance of it anyway. Move the object's public fields as global variables and change methods to public functions. This makes the code cleaner and removes boilerplate. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'lib/ui/interfaces.go')
-rw-r--r--lib/ui/interfaces.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/ui/interfaces.go b/lib/ui/interfaces.go
index 19f0c04f..a8520ff5 100644
--- a/lib/ui/interfaces.go
+++ b/lib/ui/interfaces.go
@@ -22,10 +22,6 @@ type Visible interface {
Show(bool)
}
-type RootDrawable interface {
- Initialize(ui *UI)
-}
-
type Interactive interface {
// Returns true if the event was handled by this component
Event(event tcell.Event) bool