summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap/bitmaskclient/base/models/Location.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/base/models/Location.java')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/models/Location.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/base/models/Location.java b/app/src/main/java/se/leap/bitmaskclient/base/models/Location.java
index ae7818ba..8e032d18 100644
--- a/app/src/main/java/se/leap/bitmaskclient/base/models/Location.java
+++ b/app/src/main/java/se/leap/bitmaskclient/base/models/Location.java
@@ -6,13 +6,11 @@ public class Location {
@NonNull public String name;
public double averageLoad;
public int numberOfGateways;
- public boolean selected;
- public Location(@NonNull String name, double averageLoad, int numberOfGateways, boolean selected) {
+ public Location(@NonNull String name, double averageLoad, int numberOfGateways) {
this.name = name;
this.averageLoad = averageLoad;
this.numberOfGateways = numberOfGateways;
- this.selected = selected;
}
@Override
@@ -24,7 +22,6 @@ public class Location {
if (Double.compare(location.averageLoad, averageLoad) != 0) return false;
if (numberOfGateways != location.numberOfGateways) return false;
- if (selected != location.selected) return false;
return name.equals(location.name);
}
@@ -36,7 +33,6 @@ public class Location {
temp = Double.doubleToLongBits(averageLoad);
result = 31 * result + (int) (temp ^ (temp >>> 32));
result = 31 * result + numberOfGateways;
- result = 31 * result + (selected ? 1 : 0);
return result;
}
}