refactor: remove dead code across codebase

This commit is contained in:
edde746
2026-04-16 08:14:42 +02:00
parent 65e22fbbbd
commit c369f2c3d7
9 changed files with 2 additions and 178 deletions
-14
View File
@@ -1,6 +1,5 @@
import 'dart:async';
import 'dart:io';
import 'dart:collection';
import 'package:flutter/foundation.dart';
import 'package:plezy/utils/content_utils.dart';
import '../models/download_models.dart';
@@ -450,13 +449,6 @@ class DownloadProvider extends ChangeNotifier {
);
}
/// Whether there are any downloads (active or completed)
bool get hasDownloads => _downloads.isNotEmpty;
/// Whether there are any active downloads
bool get hasActiveDownloads =>
_downloads.values.any((p) => p.status == DownloadStatus.downloading || p.status == DownloadStatus.queued);
/// Get download progress for a specific item
/// For shows/seasons, returns aggregate progress of all child episodes
/// For episodes/movies, returns direct progress
@@ -947,15 +939,9 @@ class DownloadProvider extends ChangeNotifier {
notifyListeners();
}
/// Check if an item is being deleted
bool isDeleting(String globalKey) => _deletionProgress.containsKey(globalKey);
/// Get deletion progress for an item
DeletionProgress? getDeletionProgress(String globalKey) => _deletionProgress[globalKey];
/// Get all items currently being deleted
UnmodifiableMapView<String, DeletionProgress> get deletionProgress => UnmodifiableMapView(_deletionProgress);
/// Refresh the downloads list from database
Future<void> refresh() async {
await _loadPersistedDownloads();