Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
chore: remove useless OptIn annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
msfjarvis committed Jul 19, 2023
1 parent 7aba3eb commit ce650c6
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion app/src/main/java/app/passwordstore/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/app/passwordstore/util/Perf.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
package app.passwordstore.util

import android.os.Looper
import kotlin.time.ExperimentalTime
import kotlin.time.measureTime
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() }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class KeyUtilsTest {
assertEquals("b950ae2813841585", keyId.toString())
}

@OptIn(ExperimentalStdlibApi::class)
@Test
fun isKeyUsable() {
val params = AllKeys.entries.map { it to (it != AllKeys.AEAD_PUB && it != AllKeys.AEAD_SEC) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package app.passwordstore.passgen.random
import app.passwordstore.passgen.random.util.clearFlag
import app.passwordstore.passgen.random.util.hasFlag

@OptIn(ExperimentalStdlibApi::class)
public object PasswordGenerator {

public const val DEFAULT_LENGTH: Int = 16
Expand Down

0 comments on commit ce650c6

Please sign in to comment.