Remove unused class

This commit is contained in:
Kirill Kamakin
2022-04-18 12:42:08 +02:00
parent 6764a4d86e
commit 96bce0e5f4

View File

@@ -1,26 +0,0 @@
package gq.kirmanak.mealient.ui.auth
import timber.log.Timber
enum class AuthenticationState {
AUTHORIZED,
UNAUTHORIZED,
HIDDEN;
companion object {
fun determineState(
showLoginButton: Boolean,
isAuthorized: Boolean,
): AuthenticationState {
Timber.v("determineState() called with: showLoginButton = $showLoginButton, isAuthorized = $isAuthorized")
val result = when {
!showLoginButton -> HIDDEN
isAuthorized -> AUTHORIZED
else -> UNAUTHORIZED
}
Timber.v("determineState() returned: $result")
return result
}
}
}