Skip to content

Commit

Permalink
refactor: remove MappableBinding.Version
Browse files Browse the repository at this point in the history
unused. Something similar may be used in the future, but it will likely be different
  • Loading branch information
BrayanDSO committed Dec 23, 2024
1 parent e507d1d commit a293746
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,6 @@ class MappableBinding(
}
}

/** the serialisation version */
enum class Version {
ONE,
}

companion object {
const val PREF_SEPARATOR = '|'

Expand All @@ -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
}
Expand Down

0 comments on commit a293746

Please sign in to comment.