From 1dad15698845d370e998f7cc5feb8aece3fab58f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 17:05:17 -0400 Subject: refactor: remove dead code, consolidate save/error handling, add lint gate --- internal/ui/bar.go | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'internal/ui/bar.go') diff --git a/internal/ui/bar.go b/internal/ui/bar.go index c1abce9..6904dbc 100644 --- a/internal/ui/bar.go +++ b/internal/ui/bar.go @@ -13,28 +13,6 @@ type BarStyle struct { EmptyDim bool } -func RenderBar(current, max, width int, unicode bool) string { - if max <= 0 { - max = 1 - } - if current < 0 { - current = 0 - } - if current > max { - current = max - } - filled := int(math.Round(float64(current) * float64(width) / float64(max))) - if filled > width { - filled = width - } - if filled < 0 { - filled = 0 - } - - fillRune, emptyRune := barRunes(unicode) - return strings.Repeat(fillRune, filled) + strings.Repeat(emptyRune, width-filled) -} - func RenderBarF(current, max float64, width int, unicode bool) string { if max <= 0 { max = 1 -- cgit v1.2.3