Skip to content

Commit 05d3624

Browse files
committed
Remove dead newProgressFactoryWithTotal function
1 parent a0a7744 commit 05d3624

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

cmd/root.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -167,18 +167,6 @@ func newProgressFactory() scanner.ProgressFactory {
167167
}
168168
}
169169

170-
func newProgressFactoryWithTotal(total int) scanner.ProgressFactory {
171-
if !isTTY() {
172-
return nil
173-
}
174-
stepNum := 0
175-
return func(stepName string) scanner.ProgressFunc {
176-
stepNum++
177-
label := fmt.Sprintf("[%d/%d] %s", stepNum, total, stepName)
178-
return newProgress(label)
179-
}
180-
}
181-
182170
func newScanProgressFactory(totalSteps int, descriptions map[string]string) scanner.ProgressFactory {
183171
if !isTTY() {
184172
return nil

0 commit comments

Comments
 (0)