chore: remove useless OptIn
annotations
This commit is contained in:
parent
7aba3eb780
commit
ce650c6f62
6 changed files with 0 additions and 8 deletions
|
@ -33,7 +33,6 @@ import logcat.LogPriority.VERBOSE
|
||||||
import logcat.LogcatLogger
|
import logcat.LogcatLogger
|
||||||
import logcat.logcat
|
import logcat.logcat
|
||||||
|
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
|
||||||
@Suppress("Unused")
|
@Suppress("Unused")
|
||||||
@HiltAndroidApp
|
@HiltAndroidApp
|
||||||
class Application : android.app.Application(), SharedPreferences.OnSharedPreferenceChangeListener {
|
class Application : android.app.Application(), SharedPreferences.OnSharedPreferenceChangeListener {
|
||||||
|
|
|
@ -37,7 +37,6 @@ import kotlinx.coroutines.flow.onEach
|
||||||
import reactivecircus.flowbinding.android.widget.afterTextChanges
|
import reactivecircus.flowbinding.android.widget.afterTextChanges
|
||||||
import reactivecircus.flowbinding.android.widget.checkedChanges
|
import reactivecircus.flowbinding.android.widget.checkedChanges
|
||||||
|
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
|
||||||
class PasswordGeneratorDialogFragment : DialogFragment() {
|
class PasswordGeneratorDialogFragment : DialogFragment() {
|
||||||
|
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
package app.passwordstore.util
|
package app.passwordstore.util
|
||||||
|
|
||||||
import android.os.Looper
|
import android.os.Looper
|
||||||
import kotlin.time.ExperimentalTime
|
|
||||||
import kotlin.time.measureTime
|
import kotlin.time.measureTime
|
||||||
import logcat.logcat
|
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
|
* 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.
|
* 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 {
|
inline fun <T> logExecutionTime(tag: String, crossinline block: () -> T): T {
|
||||||
val res: T
|
val res: T
|
||||||
val duration = measureTime { res = block() }
|
val duration = measureTime { res = block() }
|
||||||
|
|
|
@ -26,7 +26,6 @@ enum class Protocol(val pref: String) {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
|
||||||
fun fromString(type: String?): Protocol {
|
fun fromString(type: String?): Protocol {
|
||||||
return entries.associateBy(Protocol::pref)[type ?: return Ssh]
|
return entries.associateBy(Protocol::pref)[type ?: return Ssh]
|
||||||
?: throw IllegalArgumentException("$type is not a valid Protocol")
|
?: throw IllegalArgumentException("$type is not a valid Protocol")
|
||||||
|
@ -42,7 +41,6 @@ enum class AuthMode(val pref: String) {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
|
||||||
fun fromString(type: String?): AuthMode {
|
fun fromString(type: String?): AuthMode {
|
||||||
return entries.associateBy(AuthMode::pref)[type ?: return SshKey]
|
return entries.associateBy(AuthMode::pref)[type ?: return SshKey]
|
||||||
?: throw IllegalArgumentException("$type is not a valid AuthMode")
|
?: throw IllegalArgumentException("$type is not a valid AuthMode")
|
||||||
|
|
|
@ -24,7 +24,6 @@ class KeyUtilsTest {
|
||||||
assertEquals("b950ae2813841585", keyId.toString())
|
assertEquals("b950ae2813841585", keyId.toString())
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
|
||||||
@Test
|
@Test
|
||||||
fun isKeyUsable() {
|
fun isKeyUsable() {
|
||||||
val params = AllKeys.entries.map { it to (it != AllKeys.AEAD_PUB && it != AllKeys.AEAD_SEC) }
|
val params = AllKeys.entries.map { it to (it != AllKeys.AEAD_PUB && it != AllKeys.AEAD_SEC) }
|
||||||
|
|
|
@ -7,7 +7,6 @@ package app.passwordstore.passgen.random
|
||||||
import app.passwordstore.passgen.random.util.clearFlag
|
import app.passwordstore.passgen.random.util.clearFlag
|
||||||
import app.passwordstore.passgen.random.util.hasFlag
|
import app.passwordstore.passgen.random.util.hasFlag
|
||||||
|
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
|
||||||
public object PasswordGenerator {
|
public object PasswordGenerator {
|
||||||
|
|
||||||
public const val DEFAULT_LENGTH: Int = 16
|
public const val DEFAULT_LENGTH: Int = 16
|
||||||
|
|
Loading…
Reference in a new issue