Skip to content

Commit

Permalink
Remove unused code in MyCollectionsViewModelImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed May 25, 2024
1 parent 509131d commit ca306ba
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import kotlinx.coroutines.flow.map
import me.him188.ani.app.ViewModelAuthSupport
import me.him188.ani.app.data.media.EpisodeCacheStatus
import me.him188.ani.app.data.media.MediaCacheManager
import me.him188.ani.app.data.models.EpisodeProgressSettings
import me.him188.ani.app.data.models.MyCollectionsSettings
import me.him188.ani.app.data.repositories.SettingsRepository
import me.him188.ani.app.data.subject.SubjectCollectionItem
Expand All @@ -35,7 +34,6 @@ interface MyCollectionsViewModel : HasBackgroundScope, ViewModelAuthSupport {
val subjectManager: SubjectManager

val myCollectionsSettings: MyCollectionsSettings
val episodeProgressSettings: EpisodeProgressSettings

@Stable
fun collectionsByType(type: UnifiedCollectionType): CollectionsByType
Expand Down Expand Up @@ -64,9 +62,6 @@ class MyCollectionsViewModelImpl : AbstractViewModel(), KoinComponent, MyCollect
override val myCollectionsSettings: MyCollectionsSettings by settingsRepository.uiSettings.flow
.map { it.myCollections }
.produceState(MyCollectionsSettings.Default)
override val episodeProgressSettings: EpisodeProgressSettings by settingsRepository.uiSettings.flow
.map { it.episodeProgress }
.produceState(EpisodeProgressSettings.Default)

@Stable
override fun collectionsByType(type: UnifiedCollectionType): CollectionsByType =
Expand Down

0 comments on commit ca306ba

Please sign in to comment.