Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c273442 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

remove unused category and category type arguments

parent 0b689e15
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -948,7 +948,7 @@ class FusedAPIImpl @Inject constructor(
        runCodeBlockWithTimeout({
            val playResponse = gPlayAPIRepository.getCategoriesList(type, authData).map { app ->
                val category = app.transformToFusedCategory()
                updateCategoryDrawable(category, app)
                updateCategoryDrawable(category)
                category
            }
            categoryList.addAll(playResponse)
@@ -1045,7 +1045,6 @@ class FusedAPIImpl @Inject constructor(

    private fun updateCategoryDrawable(
        category: FusedCategory,
        app: Category
    ) {
        category.drawable =
            getCategoryIconResource(getCategoryIconName(category))
@@ -1083,7 +1082,7 @@ class FusedAPIImpl @Inject constructor(
        tag: AppTag
    ): List<FusedCategory> {
        return categories.apps.map { category ->
            createFusedCategoryFromCategory(category, categories, Category.Type.APPLICATION, tag)
            createFusedCategoryFromCategory(category, categories, tag)
        }
    }

@@ -1092,14 +1091,13 @@ class FusedAPIImpl @Inject constructor(
        tag: AppTag
    ): List<FusedCategory> {
        return categories.games.map { category ->
            createFusedCategoryFromCategory(category, categories, Category.Type.GAME, tag)
            createFusedCategoryFromCategory(category, categories, tag)
        }
    }

    private fun createFusedCategoryFromCategory(
        category: String,
        categories: Categories,
        appType: Category.Type,
        tag: AppTag
    ): FusedCategory {
        return FusedCategory(