From a31606db0d4b4e44cf3ff7f6efc9165ccf27a23e Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 19 Sep 2022 19:20:31 -0500 Subject: grid: remove unused method Children The grid method Children returns the children of a grid, and is never used. The function is reimplemented in both aerc.go and account.go, also never called. Remove these unused methods. Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- lib/ui/grid.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib') 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 { -- cgit