From efd9af9030036367c8daa70592891ef541b3a169 Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Sat, 13 Apr 2024 06:05:04 +0200 Subject: [PATCH] graph.go: remove unused Reticle code --- graph.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/graph.go b/graph.go index 25adb8d..92c31a3 100644 --- a/graph.go +++ b/graph.go @@ -29,7 +29,6 @@ type Level []*NodeRef type Reticle struct { levels []Level left, right int - charWidth int colsWidth []int } @@ -59,10 +58,6 @@ func (r *Reticle) computeCharWidth() { r.colsWidth[c] = max(r.colsWidth[c], len(ref.label)+2) // +2 to make room for brakets } } - r.charWidth = 0 - for _, w := range r.colsWidth { - r.charWidth += w - } } func (r *Reticle) build(node *term, depth, pos int) {