summaryrefslogtreecommitdiff
path: root/format-common/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-06-27 17:28:54 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-06-27 18:07:29 +0530
commitee6895b2e8664c1b30b01be9ee390852592d4767 (patch)
tree5a6984644f504a1cac2296da2732ac91accb9811 /format-common/src/main
parent6263e374d8082df892af79d5a41b66f8793bac2b (diff)
chore: cleanup IDE warnings
Diffstat (limited to 'format-common/src/main')
-rw-r--r--format-common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt2
-rw-r--r--format-common/src/main/kotlin/app/passwordstore/data/passfile/Totp.kt2
2 files changed, 0 insertions, 4 deletions
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)