remove unused code in LiveProgressReporter

This commit is contained in:
Sina Atalay 2024-02-09 20:33:09 +01:00
parent 91045b760c
commit 016d4ae88a
1 changed files with 0 additions and 2 deletions

View File

@ -150,8 +150,6 @@ class LiveProgressReporter(rich.live.Live):
class TimeElapsedColumn(rich.progress.ProgressColumn):
def render(self, task: "rich.progress.Task") -> rich.text.Text:
elapsed = task.finished_time if task.finished else task.elapsed
if elapsed is None:
return rich.text.Text("--.-", style="progress.elapsed")
delta = f"{elapsed:.1f} s"
return rich.text.Text(str(delta), style="progress.elapsed")