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

Commit 577abae1 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Merge branch '0000-s-remove-dead-code' into 'main'

Remove some dead code

See merge request !384
parents 139cd388 921f2784
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ class FusedAPIRepository @Inject constructor(private val fusedAPIImpl: FusedApi)
        return fusedAPIImpl.getCategoriesList(type)
    }

    suspend fun getSearchSuggestions(query: String, authData: AuthData): List<SearchSuggestEntry> {
    suspend fun getSearchSuggestions(query: String): List<SearchSuggestEntry> {
        return fusedAPIImpl.getSearchSuggestions(query)
    }

+1 −2
Original line number Diff line number Diff line
@@ -1006,8 +1006,7 @@ class FusedApiImpl @Inject constructor(
     */

    private suspend fun getCleanAPKSearchResults(
        keyword: String,
        source: String = CleanApkRetrofit.APP_SOURCE_FOSS,
        keyword: String
    ): List<FusedApp> {
        val list = mutableListOf<FusedApp>()
        val response =
+0 −1
Original line number Diff line number Diff line
@@ -54,7 +54,6 @@ class GPlayHttpClient @Inject constructor(
    companion object {
        private const val TAG = "GPlayHttpClient"
        private const val HTTP_TIMEOUT_IN_SECOND = 10L
        private const val SEARCH = "search"
        private const val SEARCH_SUGGEST = "searchSuggest"
        private const val STATUS_CODE_OK = 200
        private const val STATUS_CODE_UNAUTHORIZED = 401
+0 −6
Original line number Diff line number Diff line
@@ -3,15 +3,12 @@ package foundation.e.apps.ui
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.liveData
import com.aurora.gplayapi.data.models.AuthData
import com.google.gson.Gson
import dagger.hilt.android.lifecycle.HiltViewModel
import foundation.e.apps.data.blockedApps.BlockedAppRepository
import foundation.e.apps.data.faultyApps.FaultyAppRepository
import foundation.e.apps.data.fdroid.FdroidRepository
import foundation.e.apps.data.fused.data.FusedApp
import foundation.e.apps.data.playstore.PlayStoreRepository
import foundation.e.apps.data.preference.DataStoreModule
import javax.inject.Inject
import javax.inject.Named

@@ -23,9 +20,7 @@ class AppInfoFetchViewModel @Inject constructor(
    private val fdroidRepository: FdroidRepository,
    @Named("gplayRepository") private val gplayRepository: PlayStoreRepository,
    private val faultyAppRepository: FaultyAppRepository,
    private val dataStoreModule: DataStoreModule,
    private val blockedAppRepository: BlockedAppRepository,
    private val gson: Gson
) : ViewModel() {

    fun getAuthorName(fusedApp: FusedApp) = liveData {
@@ -35,7 +30,6 @@ class AppInfoFetchViewModel @Inject constructor(

    fun isAppPurchased(app: FusedApp): LiveData<Boolean> {
        return liveData {
            val authData = gson.fromJson(dataStoreModule.getAuthDataSync(), AuthData::class.java)
            try {
                gplayRepository.getDownloadInfo(
                    app.package_name,
+0 −4
Original line number Diff line number Diff line
@@ -86,10 +86,6 @@ class MainActivityViewModel @Inject constructor(

    lateinit var connectivityManager: ConnectivityManager

    companion object {
        private const val TAG = "MainActivityViewModel"
    }

    fun getUser(): User {
        return dataStoreModule.getUserType()
    }
Loading