Skip to content

Bulk asynchronous downloader for multiple file hosts

Remove unused functions

Jacob427f3446705e
diff --git a/cyberdrop_dl/ui/progress/downloads_progress.py b/cyberdrop_dl/ui/progress/downloads_progress.py
index ffa4ae56d..0772b6c87 100644
--- a/cyberdrop_dl/ui/progress/downloads_progress.py
+++ b/cyberdrop_dl/ui/progress/downloads_progress.py
@@ -62,7 +62,3 @@ class DownloadsProgress:
"""Adds a failed file to the progress bar"""
self.progress.advance(self.failed_files_task_id, 1)
self.failed_files += 1
-
- async def return_totals(self) -> Tuple[int, int, int, int]:
- """Returns the total number of completed, previously completed, skipped and failed files"""
- return self.completed_files, self.previously_completed_files, self.skipped_files, self.failed_files
diff --git a/cyberdrop_dl/ui/progress/file_progress.py b/cyberdrop_dl/ui/progress/file_progress.py
index cc664f1dd..4e8fd8101 100644
--- a/cyberdrop_dl/ui/progress/file_progress.py
+++ b/cyberdrop_dl/ui/progress/file_progress.py
@@ -113,16 +113,6 @@ class FileProgress:
raise ValueError("Task ID not found")
await self.redraw()
- async def mark_task_completed(self, task_id: TaskID) -> None:
- """Marks the given task as completed"""
- self.progress.update(task_id, visible=False)
- if task_id in self.visible_tasks:
- self.visible_tasks.remove(task_id)
- elif task_id in self.invisible_tasks:
- self.invisible_tasks.remove(task_id)
- await self.redraw()
- self.completed_tasks.append(task_id)
-
async def advance_file(self, task_id: TaskID, amount: int) -> None:
"""Advances the progress of the given task by the given amount"""
if task_id in self.uninitiated_tasks:
@@ -130,15 +120,3 @@ class FileProgress:
self.invisible_tasks.append(task_id)
await self.redraw()
self.progress.advance(task_id, amount)
-
- async def update_file_length(self, task_id: TaskID, total: int) -> None:
- """Updates the total number of bytes to be downloaded for the given task"""
- if task_id in self.invisible_tasks:
- self.progress.update(task_id, total=total, visible=False)
- elif task_id in self.visible_tasks:
- self.progress.update(task_id, total=total, visible=True)
- elif task_id in self.uninitiated_tasks:
- self.progress.update(task_id, total=total, visible=False)
- self.uninitiated_tasks.remove(task_id)
- self.invisible_tasks.append(task_id)
- await self.redraw()