fix: remove unused code

This commit is contained in:
Fredrik Burmester
2025-10-03 14:47:02 +02:00
parent 06e19bd7e6
commit 3a8fb0a5e5
6 changed files with 1 additions and 454 deletions

View File

@@ -135,8 +135,6 @@ function useDownloadProvider() {
appSizeUsage,
// Deprecated/not implemented in simple version
startDownload: async () => {},
pauseDownload: async () => {},
resumeDownload: async () => {},
cleanCacheDirectory: async () => {},
updateDownloadedItem: () => {},
dumpDownloadDiagnostics: async () => "",
@@ -161,8 +159,6 @@ export function useDownload() {
cancelDownload: async () => {},
triggerRefresh: () => {},
startDownload: async () => {},
pauseDownload: async () => {},
resumeDownload: async () => {},
getDownloadedItemSize: () => 0,
getDownloadedItemById: () => undefined,
APP_CACHE_DOWNLOAD_DIRECTORY: "",

View File

@@ -113,7 +113,6 @@ export type JobStatus = {
/** Current status of the download job */
status:
| "downloading" // The job is actively downloading
| "paused" // The job is paused
| "error" // The job encountered an error
| "pending" // The job is waiting to start
| "completed" // The job has finished downloading
@@ -133,14 +132,4 @@ export type JobStatus = {
/** Estimated total size of the download in bytes (optional) this is used when we
* download transcoded content because we don't know the size of the file until it's downloaded */
estimatedTotalSizeBytes?: number;
/** Timestamp when the download was paused (optional) */
pausedAt?: Date;
/** Progress percentage when download was paused (optional) */
pausedProgress?: number;
/** Bytes downloaded when download was paused (optional) */
pausedBytes?: number;
/** Bytes downloaded in the current session (since last resume). Used for session-only speed calculation. */
lastSessionBytes?: number;
/** Timestamp when the session-only bytes were last updated. */
lastSessionUpdateTime?: Date;
};