Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
dshokouhi committed Nov 12, 2021
1 parent e140221 commit 84b0806
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
@@ -1,7 +1,6 @@
package io.homeassistant.companion.android.settings

import androidx.preference.PreferenceDataStore
import io.homeassistant.companion.android.common.data.integration.Entity
import io.homeassistant.companion.android.common.data.integration.impl.entities.RateLimitResponse

interface SettingsPresenter {
Expand All @@ -16,6 +15,4 @@ interface SettingsPresenter {
fun getSessionExpireMillis(): Long
fun isSsidUsed(): Boolean
fun clearSsids()

suspend fun getEntities(): List<Entity<*>>
}
Expand Up @@ -4,7 +4,6 @@ import android.util.Log
import androidx.preference.PreferenceDataStore
import io.homeassistant.companion.android.common.data.authentication.AuthenticationRepository
import io.homeassistant.companion.android.common.data.integration.DeviceRegistration
import io.homeassistant.companion.android.common.data.integration.Entity
import io.homeassistant.companion.android.common.data.integration.IntegrationRepository
import io.homeassistant.companion.android.common.data.integration.impl.entities.RateLimitResponse
import io.homeassistant.companion.android.common.data.prefs.PrefsRepository
Expand Down Expand Up @@ -215,13 +214,4 @@ class SettingsPresenterImpl @Inject constructor(
urlUseCase.getHomeWifiSsids().isNotEmpty()
}
}

override suspend fun getEntities(): List<Entity<*>> {
return try {
integrationUseCase.getEntities()
} catch (e: Exception) {
Log.e(TAG, "Unable to get entities", e)
emptyList()
}
}
}

0 comments on commit 84b0806

Please sign in to comment.