summaryrefslogtreecommitdiff
path: root/altoslib/AltosGreatCircle.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-06-15 22:52:08 -0700
committerKeith Packard <keithp@keithp.com>2016-06-15 22:52:08 -0700
commitf7e2f7f430e612c682bf55478860054ce94b995f (patch)
treed8274c9fdc2b3731e4b8a2438a7e453a7cd23b37 /altoslib/AltosGreatCircle.java
parent1b5ea911049a8afae6af475a4a2bf62a6e3aa57b (diff)
altoslib: Remove AltosHashSet code
Everything has switched to JSON now. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosGreatCircle.java')
-rw-r--r--altoslib/AltosGreatCircle.java29
1 files changed, 1 insertions, 28 deletions
diff --git a/altoslib/AltosGreatCircle.java b/altoslib/AltosGreatCircle.java
index 8fd380a1..f2c1783d 100644
--- a/altoslib/AltosGreatCircle.java
+++ b/altoslib/AltosGreatCircle.java
@@ -20,7 +20,7 @@ package org.altusmetrum.altoslib_11;
import java.lang.Math;
import java.io.*;
-public class AltosGreatCircle implements Cloneable, AltosHashable, AltosJsonable {
+public class AltosGreatCircle implements Cloneable, AltosJsonable {
public double distance;
public double bearing;
public double range;
@@ -104,17 +104,6 @@ public class AltosGreatCircle implements Cloneable, AltosHashable, AltosJsonable
elevation = 0;
}
- public AltosHashSet hashSet() {
- AltosHashSet h = new AltosHashSet();
-
- h.putDouble("distance", distance);
- h.putDouble("bearing", bearing);
- h.putDouble("range", range);
- h.putDouble("elevation", elevation);
-
- return h;
- }
-
public AltosJson json() {
AltosJson j = new AltosJson();
@@ -126,22 +115,6 @@ public class AltosGreatCircle implements Cloneable, AltosHashable, AltosJsonable
return j;
}
- public AltosGreatCircle(AltosHashSet h) {
- this();
-
- distance = h.getDouble("distance", distance);
- bearing = h.getDouble("bearing", bearing);
- range = h.getDouble("range", range);
- elevation = h.getDouble("elevation", elevation);
- }
-
- public static AltosGreatCircle fromHashSet(AltosHashSet h, AltosGreatCircle def) {
- if (h == null)
- return def;
-
- return new AltosGreatCircle(h);
- }
-
public AltosGreatCircle(AltosJson j) {
this();