aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ui/grid.go11
-rw-r--r--widgets/account.go4
-rw-r--r--widgets/aerc.go4
3 files changed, 0 insertions, 19 deletions
diff --git a/lib/ui/grid.go b/lib/ui/grid.go
index 1eac2ee8..04a6dc42 100644
--- a/lib/ui/grid.go
+++ b/lib/ui/grid.go
@@ -94,17 +94,6 @@ func (grid *Grid) Columns(spec []GridSpec) *Grid {
return grid
}
-func (grid *Grid) Children() []Drawable {
- grid.mutex.RLock()
- defer grid.mutex.RUnlock()
-
- children := make([]Drawable, len(grid.cells))
- for i, cell := range grid.cells {
- children[i] = cell.Content
- }
- return children
-}
-
func (grid *Grid) Draw(ctx *Context) {
invalid := grid.invalid
if invalid {
diff --git a/widgets/account.go b/widgets/account.go
index 60468767..8cac373b 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -155,10 +155,6 @@ func (acct *AccountView) Name() string {
return acct.acct.Name
}
-func (acct *AccountView) Children() []ui.Drawable {
- return acct.grid.Children()
-}
-
func (acct *AccountView) OnInvalidate(onInvalidate func(d ui.Drawable)) {
acct.grid.OnInvalidate(func(_ ui.Drawable) {
onInvalidate(acct)
diff --git a/widgets/aerc.go b/widgets/aerc.go
index 2b7a6d86..4cd96a83 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -167,10 +167,6 @@ func (aerc *Aerc) Tick() bool {
return more
}
-func (aerc *Aerc) Children() []ui.Drawable {
- return aerc.grid.Children()
-}
-
func (aerc *Aerc) OnInvalidate(onInvalidate func(d ui.Drawable)) {
aerc.grid.OnInvalidate(func(_ ui.Drawable) {
onInvalidate(aerc)