altoslib: Get rid of manual JSON encoding stuff
[fw/altos] / altoslib / AltosMag.java
index c350ae46392f4ddd637b58fe8f34c0c825a9faf1..5864529fe4f175683ef04149c9812443506b7a37 100644 (file)
@@ -20,7 +20,7 @@ package org.altusmetrum.altoslib_11;
 import java.util.concurrent.*;
 import java.io.*;
 
-public class AltosMag implements Cloneable, AltosHashable {
+public class AltosMag implements Cloneable {
        public int              along;
        public int              across;
        public int              through;
@@ -93,28 +93,4 @@ public class AltosMag implements Cloneable, AltosHashable {
                                break;
                }
        }
-
-       public AltosHashSet hashSet() {
-               AltosHashSet    h = new AltosHashSet();
-
-               h.putInt("along", along);
-               h.putInt("across", across);
-               h.putInt("through", through);
-               return h;
-       }
-
-       public AltosMag(AltosHashSet h) {
-               this();
-
-               along = h.getInt("along", along);
-               across = h.getInt("across", across);
-               through = h.getInt("through", through);
-       }
-
-       public static AltosMag fromHashSet(AltosHashSet h, AltosMag def) {
-               if (h == null)
-                       return def;
-
-               return new AltosMag(h);
-       }
 }