Skip to content

Commit 936e1af

Browse files
committed
removed categories
1 parent bdaa089 commit 936e1af

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

app/src/main/java/ds/photosight/repo/PhotosPagingSource.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ class PhotosPagingSource(
5959
is RatingMenuItemState.Day -> DailyPhotosRequest(DatePage(page))
6060
is RatingMenuItemState.Week -> Top50PhotosRequest()
6161
is RatingMenuItemState.Month -> Top200PhotosRequest()
62-
is RatingMenuItemState.Art -> TopArtPhotosRequest()
62+
//is RatingMenuItemState.Art -> TopArtPhotosRequest()
6363
is RatingMenuItemState.Orig -> TopOrigPhotosRequest()
6464
is RatingMenuItemState.Tech -> TopTechPhotosRequest()
6565
is RatingMenuItemState.Favs -> TopFavoritesPhotosRequest()
6666
is RatingMenuItemState.Applicants -> TopApplicantsPhotosRequest()
67-
is RatingMenuItemState.Outrun -> OutrunPhotosRequest()
67+
//is RatingMenuItemState.Outrun -> OutrunPhotosRequest()
6868
else -> error("illegal menu item")
6969
}
7070
}

app/src/main/java/ds/photosight/repo/PhotosightRepo.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,8 @@ class PhotosightRepo @Inject constructor(@ApplicationContext private val context
2929
RatingMenuItemState::Day,
3030
RatingMenuItemState::Week,
3131
RatingMenuItemState::Month,
32-
RatingMenuItemState::Art,
33-
RatingMenuItemState::Orig,
34-
RatingMenuItemState::Tech,
3532
RatingMenuItemState::Favs,
3633
RatingMenuItemState::Applicants,
37-
RatingMenuItemState::Outrun
3834
)
3935
.map { it(context) }
4036

app/src/main/java/ds/photosight/ui/viewmodel/Data.kt

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ sealed class RatingMenuItemState(@StringRes val titleId: Int) : MenuItemState {
2929
data class Day(override val context: Context) : RatingMenuItemState(R.string.rating_day)
3030
data class Week(override val context: Context) : RatingMenuItemState(R.string.rating_week)
3131
data class Month(override val context: Context) : RatingMenuItemState(R.string.rating_month)
32-
data class Art(override val context: Context) : RatingMenuItemState(R.string.rating_artistic)
32+
//data class Art(override val context: Context) : RatingMenuItemState(R.string.rating_artistic)
3333
data class Orig(override val context: Context) : RatingMenuItemState(R.string.rating_original)
3434
data class Tech(override val context: Context) : RatingMenuItemState(R.string.rating_technic)
3535
data class Favs(override val context: Context) : RatingMenuItemState(R.string.rating_favorites)
3636
data class Applicants(override val context: Context) : RatingMenuItemState(R.string.rating_applicants)
37-
data class Outrun(override val context: Context) : RatingMenuItemState(R.string.rating_outrun)
37+
//data class Outrun(override val context: Context) : RatingMenuItemState(R.string.rating_outrun)
3838
data class All(override val context: Context) : RatingMenuItemState(R.string.new_photos)
3939

4040
}
@@ -65,19 +65,6 @@ interface PhotosFilter {
6565
override var enabled: Boolean = false
6666
) : PhotosFilter
6767

68-
@Deprecated("not used")
69-
data class BestPhotos(
70-
val sort: BestPhotosRequest.Sort = BestPhotosRequest.Sort.BEST,
71-
val time: BestPhotosRequest.Time = BestPhotosRequest.Time.DAY,
72-
override var enabled: Boolean
73-
) : PhotosFilter
74-
75-
@Deprecated("not used")
76-
data class DailyPhotos(
77-
val category: Int? = null,
78-
override var enabled: Boolean = false
79-
) : PhotosFilter
80-
8168
}
8269

8370
sealed class CommentsState(val error: Boolean, val loading: Boolean) {

0 commit comments

Comments
 (0)