diff options
Diffstat (limited to 'app/src/main/java')
4 files changed, 0 insertions, 6 deletions
diff --git a/app/src/main/java/app/passwordstore/Application.kt b/app/src/main/java/app/passwordstore/Application.kt index 9c7fe39a..279c6af0 100644 --- a/app/src/main/java/app/passwordstore/Application.kt +++ b/app/src/main/java/app/passwordstore/Application.kt @@ -33,7 +33,6 @@ import logcat.LogPriority.VERBOSE import logcat.LogcatLogger import logcat.logcat -@OptIn(ExperimentalStdlibApi::class) @Suppress("Unused") @HiltAndroidApp class Application : android.app.Application(), SharedPreferences.OnSharedPreferenceChangeListener { diff --git a/app/src/main/java/app/passwordstore/ui/dialogs/PasswordGeneratorDialogFragment.kt b/app/src/main/java/app/passwordstore/ui/dialogs/PasswordGeneratorDialogFragment.kt index 1130ffd1..da1a060a 100644 --- a/app/src/main/java/app/passwordstore/ui/dialogs/PasswordGeneratorDialogFragment.kt +++ b/app/src/main/java/app/passwordstore/ui/dialogs/PasswordGeneratorDialogFragment.kt @@ -37,7 +37,6 @@ import kotlinx.coroutines.flow.onEach import reactivecircus.flowbinding.android.widget.afterTextChanges import reactivecircus.flowbinding.android.widget.checkedChanges -@OptIn(ExperimentalStdlibApi::class) class PasswordGeneratorDialogFragment : DialogFragment() { override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { diff --git a/app/src/main/java/app/passwordstore/util/Perf.kt b/app/src/main/java/app/passwordstore/util/Perf.kt index c56410f9..ebf3a8e2 100644 --- a/app/src/main/java/app/passwordstore/util/Perf.kt +++ b/app/src/main/java/app/passwordstore/util/Perf.kt @@ -4,7 +4,6 @@ package app.passwordstore.util import android.os.Looper -import kotlin.time.ExperimentalTime import kotlin.time.measureTime import logcat.logcat @@ -12,7 +11,6 @@ import logcat.logcat * Small helper to execute a given [block] and log the time it took to execute it. Intended for use * in day-to-day perf investigations and code using it should probably not be shipped. */ -@OptIn(ExperimentalTime::class) inline fun <T> logExecutionTime(tag: String, crossinline block: () -> T): T { val res: T val duration = measureTime { res = block() } diff --git a/app/src/main/java/app/passwordstore/util/settings/GitSettings.kt b/app/src/main/java/app/passwordstore/util/settings/GitSettings.kt index b7422c99..56124104 100644 --- a/app/src/main/java/app/passwordstore/util/settings/GitSettings.kt +++ b/app/src/main/java/app/passwordstore/util/settings/GitSettings.kt @@ -26,7 +26,6 @@ enum class Protocol(val pref: String) { companion object { - @OptIn(ExperimentalStdlibApi::class) fun fromString(type: String?): Protocol { return entries.associateBy(Protocol::pref)[type ?: return Ssh] ?: throw IllegalArgumentException("$type is not a valid Protocol") @@ -42,7 +41,6 @@ enum class AuthMode(val pref: String) { companion object { - @OptIn(ExperimentalStdlibApi::class) fun fromString(type: String?): AuthMode { return entries.associateBy(AuthMode::pref)[type ?: return SshKey] ?: throw IllegalArgumentException("$type is not a valid AuthMode") |