diff --git a/app/lib/entity/album/provider.dart b/app/lib/entity/album/provider.dart index 1d47a5d0..ba5af393 100644 --- a/app/lib/entity/album/provider.dart +++ b/app/lib/entity/album/provider.dart @@ -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? latestItemTime, - }) { - // Smart albums do not support copying - throw UnimplementedError(); - } - - @override - toContentJson() { - // Smart albums do not support saving - throw UnimplementedError(); - } -} diff --git a/app/lib/use_case/preprocess_album.dart b/app/lib/use_case/preprocess_album.dart index 52d924db..c8d4c534 100644 --- a/app/lib/use_case/preprocess_album.dart +++ b/app/lib/use_case/preprocess_album.dart @@ -22,8 +22,7 @@ class PreProcessAlbum { Future> 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(