Remove unused class
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user