altoslib: Get rid of manual JSON encoding stuff
[fw/altos] / altoslib / AltosMag.java
index 8d40bc607490f5392fff4c4eb5cc3f50573a396c..5864529fe4f175683ef04149c9812443506b7a37 100644 (file)
@@ -20,7 +20,7 @@ package org.altusmetrum.altoslib_11;
 import java.util.concurrent.*;
 import java.io.*;
 
-public class AltosMag implements Cloneable, AltosJsonable {
+public class AltosMag implements Cloneable {
        public int              along;
        public int              across;
        public int              through;
@@ -93,28 +93,4 @@ public class AltosMag implements Cloneable, AltosJsonable {
                                break;
                }
        }
-
-       public AltosJson json() {
-               AltosJson       j = new AltosJson();
-
-               j.put("along", along);
-               j.put("across", across);
-               j.put("through", through);
-               return j;
-       }
-
-       public AltosMag(AltosJson j) {
-               this();
-
-               along = j.get_int("along", along);
-               across = j.get_int("across", across);
-               through = j.get_int("through", through);
-       }
-
-       public static AltosMag fromJson(AltosJson j, AltosMag def) {
-               if (j == null)
-                       return def;
-
-               return new AltosMag(j);
-       }
 }