From d2d9236bb32ebf07b4f20d4f944b43104d00864f Mon Sep 17 00:00:00 2001 From: Brayan Oliveira <69634269+brayandso@users.noreply.github.com> Date: Sun, 15 Dec 2024 13:43:45 -0300 Subject: [PATCH] refactor: remove MappableBinding.Version unused. And until there is a second version, it has no utility --- .../java/com/ichi2/anki/reviewer/MappableBinding.kt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/MappableBinding.kt b/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/MappableBinding.kt index 51fec49cbfa0..c9cdda5f0a17 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/MappableBinding.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/reviewer/MappableBinding.kt @@ -165,11 +165,6 @@ class MappableBinding( } } - /** the serialisation version */ - enum class Version { - ONE, - } - companion object { const val PREF_SEPARATOR = '|' @@ -185,12 +180,8 @@ class MappableBinding( .mapNotNull { it.toPreferenceString() } .joinToString(prefix = "1/", separator = PREF_SEPARATOR.toString()) - @Suppress("UNUSED_PARAMETER") @CheckResult - fun fromString( - s: String, - v: Version = Version.ONE, - ): MappableBinding? { + fun fromString(s: String): MappableBinding? { if (s.isEmpty()) { return null }