Remove unused file

This commit is contained in:
Neeraj Gupta
2025-06-26 14:25:05 +05:30
parent 70b043d34a
commit 2ff059a701

View File

@@ -1,29 +0,0 @@
import "package:photos/models/file/remote/asset.dart";
import "package:photos/models/file/remote/collection_file.dart";
class RemoteAssetCache {
final Map<int, RemoteAsset> _cache = {};
final Map<int, Set<int>> _collectionsToAssets = {};
final Map<int, Set<int>> _assetsToCollections = {};
final Map<String, CollectionFile> _fileEntries = {};
List<int>? uncachedAssets(List<int> assetIDs) {
final missing = <int>[];
for (final id in assetIDs) {
if (!_cache.containsKey(id)) {
missing.add(id);
}
}
return missing.isEmpty ? null : missing;
}
void addOrUpdate(List<RemoteAsset> assets) {
for (final asset in assets) {
_cache[asset.id] = asset;
}
}
void clearCache() {
_cache.clear();
}
}