summaryrefslogtreecommitdiffhomepage
path: root/android/lib/model
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2023-08-30 13:12:43 +0200
committerLinus Färnstrand <linus@mullvad.net>2023-09-05 11:27:08 +0200
commit9ec48833ea119c910136d3c6a878f2e01a20f4a5 (patch)
tree40af7e2d6ac15bc3670696f37e44a04dd3f0d3d4 /android/lib/model
parent7444ac28c93fbdc6cfbbae648fa19eec70e57077 (diff)
downloadmullvadvpn-9ec48833ea119c910136d3c6a878f2e01a20f4a5.tar.xz
mullvadvpn-9ec48833ea119c910136d3c6a878f2e01a20f4a5.zip
Remove Android code dealing with forwarded ports
Diffstat (limited to 'android/lib/model')
-rw-r--r--android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Device.kt11
1 files changed, 2 insertions, 9 deletions
diff --git a/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Device.kt b/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Device.kt
index a9ad4ec874..92f0621e6e 100644
--- a/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Device.kt
+++ b/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Device.kt
@@ -4,13 +4,8 @@ import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
-data class Device(
- val id: String,
- val name: String,
- val pubkey: ByteArray,
- val ports: ArrayList<DevicePort>,
- val created: String
-) : Parcelable {
+data class Device(val id: String, val name: String, val pubkey: ByteArray, val created: String) :
+ Parcelable {
// Generated by Android Studio
override fun equals(other: Any?): Boolean {
if (this === other) return true
@@ -21,7 +16,6 @@ data class Device(
if (id != other.id) return false
if (name != other.name) return false
if (!pubkey.contentEquals(other.pubkey)) return false
- if (ports != other.ports) return false
return true
}
@@ -31,7 +25,6 @@ data class Device(
var result = id.hashCode()
result = 31 * result + name.hashCode()
result = 31 * result + pubkey.contentHashCode()
- result = 31 * result + ports.hashCode()
return result
}
}