Remove obsolete code

This commit is contained in:
Ming Ming 2023-05-13 02:33:10 +08:00
parent e56df922bb
commit 155990e7bd
2 changed files with 1 additions and 23 deletions

View file

@ -263,24 +263,3 @@ class AlbumTagProvider extends AlbumDynamicProvider {
static const _type = "tag";
}
/// Smart albums are created only by the app and not the user
abstract class AlbumSmartProvider extends AlbumProviderBase {
AlbumSmartProvider({
DateTime? latestItemTime,
}) : super(latestItemTime: latestItemTime);
@override
AlbumSmartProvider copyWith({
OrNull<DateTime>? latestItemTime,
}) {
// Smart albums do not support copying
throw UnimplementedError();
}
@override
toContentJson() {
// Smart albums do not support saving
throw UnimplementedError();
}
}

View file

@ -22,8 +22,7 @@ class PreProcessAlbum {
Future<List<AlbumItem>> call(Account account, Album album) {
if (album.provider is AlbumStaticProvider) {
return ResyncAlbum(_c)(account, album);
} else if (album.provider is AlbumDynamicProvider ||
album.provider is AlbumSmartProvider) {
} else if (album.provider is AlbumDynamicProvider) {
return PopulateAlbum(_c)(account, album);
} else {
throw ArgumentError(