Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ankidroid/Anki-Android
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8dd9330d3e0b56898dc2c67a832db46490a5e2b9
Choose a base ref
..
head repository: ankidroid/Anki-Android
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f8b28ff5810148a250a5cc12fff7e3b15d056f47
Choose a head ref
Showing with 0 additions and 17 deletions.
  1. +0 −17 AnkiDroid/src/main/java/com/ichi2/anki/reviewer/Binding.kt
17 changes: 0 additions & 17 deletions AnkiDroid/src/main/java/com/ichi2/anki/reviewer/Binding.kt
Original file line number Diff line number Diff line change
@@ -36,10 +36,6 @@ sealed interface Binding {
append(GESTURE_PREFIX)
append(gesture)
}

override fun equals(other: Any?): Boolean = other is GestureInput && gesture == other.gesture

override fun hashCode(): Int = Objects.hash(gesture)
}

/**
@@ -64,10 +60,6 @@ sealed interface Binding {
append(threshold)
}

override fun equals(other: Any?): Boolean = other is AxisButtonBinding && axis == other.axis && threshold == other.threshold

override fun hashCode(): Int = Objects.hash(axis.motionEventValue, threshold.toInt())

companion object {
fun from(preferenceString: String): AxisButtonBinding {
val s = preferenceString.split(" ")
@@ -110,10 +102,6 @@ sealed interface Binding {
append(modifierKeys.toString())
append(keycode)
}

override fun equals(other: Any?): Boolean = other is KeyCode && keycode == other.keycode && modifierKeys == other.modifierKeys

override fun hashCode(): Int = Objects.hash(keycode)
}

data class UnicodeCharacter(
@@ -134,11 +122,6 @@ sealed interface Binding {
append(modifierKeys.toString())
append(unicodeCharacter)
}

override fun equals(other: Any?): Boolean =
other is UnicodeCharacter && unicodeCharacter == other.unicodeCharacter && modifierKeys == other.modifierKeys

override fun hashCode(): Int = Objects.hash(unicodeCharacter)
}

data object UnknownBinding : Binding {