Skip to content

Commit d4f281e

Browse files
refactor: remove unused progress bar renderer
- Bumped version to 1.0.3
1 parent 2f2017a commit d4f281e

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.2
1+
1.0.3

internal/ui/tasklist/model.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -269,18 +269,6 @@ func (m Model) renderRow(t core.Task, selected bool) string {
269269
return rowStyle.Render(line)
270270
}
271271

272-
func (m Model) renderProgressBar(progress float64, width int) string {
273-
if progress < 0 {
274-
progress = 0
275-
}
276-
if progress > 1 {
277-
progress = 1
278-
}
279-
filled := int(float64(width) * progress)
280-
bar := strings.Repeat("▰", filled) + strings.Repeat("▱", width-filled)
281-
return m.styles.Muted.Foreground(m.styles.Theme.Accent).Render("[" + bar + "]")
282-
}
283-
284272
func (m Model) renderProgressiveStrikethrough(text string, progress float64) string {
285273
if progress < 0 {
286274
progress = 0

0 commit comments

Comments
 (0)