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

Commit ce650c6

Browse files
committed
chore: remove useless OptIn annotations
1 parent 7aba3eb commit ce650c6

File tree

6 files changed

+0
-8
lines changed

6 files changed

+0
-8
lines changed

Diff for: app/src/main/java/app/passwordstore/Application.kt

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import logcat.LogPriority.VERBOSE
3333
import logcat.LogcatLogger
3434
import logcat.logcat
3535

36-
@OptIn(ExperimentalStdlibApi::class)
3736
@Suppress("Unused")
3837
@HiltAndroidApp
3938
class Application : android.app.Application(), SharedPreferences.OnSharedPreferenceChangeListener {

Diff for: app/src/main/java/app/passwordstore/ui/dialogs/PasswordGeneratorDialogFragment.kt

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import kotlinx.coroutines.flow.onEach
3737
import reactivecircus.flowbinding.android.widget.afterTextChanges
3838
import reactivecircus.flowbinding.android.widget.checkedChanges
3939

40-
@OptIn(ExperimentalStdlibApi::class)
4140
class PasswordGeneratorDialogFragment : DialogFragment() {
4241

4342
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {

Diff for: app/src/main/java/app/passwordstore/util/Perf.kt

-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
package app.passwordstore.util
55

66
import android.os.Looper
7-
import kotlin.time.ExperimentalTime
87
import kotlin.time.measureTime
98
import logcat.logcat
109

1110
/**
1211
* Small helper to execute a given [block] and log the time it took to execute it. Intended for use
1312
* in day-to-day perf investigations and code using it should probably not be shipped.
1413
*/
15-
@OptIn(ExperimentalTime::class)
1614
inline fun <T> logExecutionTime(tag: String, crossinline block: () -> T): T {
1715
val res: T
1816
val duration = measureTime { res = block() }

Diff for: app/src/main/java/app/passwordstore/util/settings/GitSettings.kt

-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ enum class Protocol(val pref: String) {
2626

2727
companion object {
2828

29-
@OptIn(ExperimentalStdlibApi::class)
3029
fun fromString(type: String?): Protocol {
3130
return entries.associateBy(Protocol::pref)[type ?: return Ssh]
3231
?: throw IllegalArgumentException("$type is not a valid Protocol")
@@ -42,7 +41,6 @@ enum class AuthMode(val pref: String) {
4241

4342
companion object {
4443

45-
@OptIn(ExperimentalStdlibApi::class)
4644
fun fromString(type: String?): AuthMode {
4745
return entries.associateBy(AuthMode::pref)[type ?: return SshKey]
4846
?: throw IllegalArgumentException("$type is not a valid AuthMode")

Diff for: crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/KeyUtilsTest.kt

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class KeyUtilsTest {
2424
assertEquals("b950ae2813841585", keyId.toString())
2525
}
2626

27-
@OptIn(ExperimentalStdlibApi::class)
2827
@Test
2928
fun isKeyUsable() {
3029
val params = AllKeys.entries.map { it to (it != AllKeys.AEAD_PUB && it != AllKeys.AEAD_SEC) }

Diff for: passgen/random/src/main/kotlin/app/passwordstore/passgen/random/PasswordGenerator.kt

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ package app.passwordstore.passgen.random
77
import app.passwordstore.passgen.random.util.clearFlag
88
import app.passwordstore.passgen.random.util.hasFlag
99

10-
@OptIn(ExperimentalStdlibApi::class)
1110
public object PasswordGenerator {
1211

1312
public const val DEFAULT_LENGTH: Int = 16

0 commit comments

Comments
 (0)