summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2021-03-25 13:50:16 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2021-03-25 18:19:58 +0000
commit1047d8fdd65fe63361cf0e2f88dde51cbd9a83ec (patch)
treec6704f7fb246e8b5e93de0fe5c27d25fed1fe5bd /android/src
parent64bb5ee9cb77ffcbc14cf6ceae0654b1fca55a0d (diff)
downloadmullvadvpn-1047d8fdd65fe63361cf0e2f88dde51cbd9a83ec.tar.xz
mullvadvpn-1047d8fdd65fe63361cf0e2f88dde51cbd9a83ec.zip
Remove unused `code` property
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt9
1 files changed, 4 insertions, 5 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt
index 998167468d..15937d7c67 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt
@@ -3,16 +3,15 @@ package net.mullvad.mullvadvpn.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
-sealed class LocationConstraint(val code: Array<String>) : Parcelable {
+sealed class LocationConstraint : Parcelable {
@Parcelize
- data class Country(val countryCode: String) :
- LocationConstraint(arrayOf(countryCode)), Parcelable
+ data class Country(val countryCode: String) : LocationConstraint(), Parcelable
@Parcelize
data class City(val countryCode: String, val cityCode: String) :
- LocationConstraint(arrayOf(countryCode, cityCode)), Parcelable
+ LocationConstraint(), Parcelable
@Parcelize
data class Hostname(val countryCode: String, val cityCode: String, val hostname: String) :
- LocationConstraint(arrayOf(countryCode, cityCode, hostname)), Parcelable
+ LocationConstraint(), Parcelable
}