aboutsummaryrefslogtreecommitdiff
path: root/internal/ui/bar.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-16 17:05:17 -0400
committerhistoria <[not public]>2026-09-16 17:05:17 -0400
commit1dad15698845d370e998f7cc5feb8aece3fab58f (patch)
tree8d58058782de9f422573e1f8efd5d130ce7d1ce9 /internal/ui/bar.go
parenta6cf03a6ae98e4fb675da25046d148e92bcf7206 (diff)
downloadthehouseoficarus-1dad15698845d370e998f7cc5feb8aece3fab58f.tar.gz
refactor: remove dead code, consolidate save/error handling, add lint gate
Diffstat (limited to 'internal/ui/bar.go')
-rw-r--r--internal/ui/bar.go22
1 files changed, 0 insertions, 22 deletions
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