From ee6895b2e8664c1b30b01be9ee390852592d4767 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 27 Jun 2023 17:28:54 +0530 Subject: chore: cleanup IDE warnings --- .../src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt | 2 -- format-common/src/main/kotlin/app/passwordstore/data/passfile/Totp.kt | 2 -- 2 files changed, 4 deletions(-) (limited to 'format-common') diff --git a/format-common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt b/format-common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt index d2d16efd..1618374f 100644 --- a/format-common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt +++ b/format-common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt @@ -17,14 +17,12 @@ import kotlin.collections.set import kotlin.coroutines.coroutineContext import kotlin.time.Duration.Companion.milliseconds import kotlin.time.Duration.Companion.seconds -import kotlin.time.ExperimentalTime import kotlinx.coroutines.delay import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow import kotlinx.coroutines.isActive /** Represents a single entry in the password store. */ -@OptIn(ExperimentalTime::class) public class PasswordEntry @AssistedInject constructor( diff --git a/format-common/src/main/kotlin/app/passwordstore/data/passfile/Totp.kt b/format-common/src/main/kotlin/app/passwordstore/data/passfile/Totp.kt index 2f42977b..c279360f 100644 --- a/format-common/src/main/kotlin/app/passwordstore/data/passfile/Totp.kt +++ b/format-common/src/main/kotlin/app/passwordstore/data/passfile/Totp.kt @@ -1,8 +1,6 @@ package app.passwordstore.data.passfile import kotlin.time.Duration -import kotlin.time.ExperimentalTime /** Holder for a TOTP secret and the duration for which it is valid. */ -@OptIn(ExperimentalTime::class) public data class Totp(public val value: String, public val remainingTime: Duration) -- cgit v1.2.3