Skip to content

Commit

Permalink
refactor: remove MappableBinding.Version
Browse files Browse the repository at this point in the history
unused. And until there is a second version, it has no utility
  • Loading branch information
BrayanDSO committed Dec 26, 2024
1 parent 2a909fe commit d2d9236
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 d2d9236

Please sign in to comment.