altoslib: Get rid of manual JSON encoding stuff
[fw/altos] / altoslib / AltosFrequency.java
index f9aa6de6ccb3eeea88baee2eb751a6ae3b9cd44d..874a9bccb5a41f8682056eb626b47bb6d73720e6 100644 (file)
@@ -57,28 +57,8 @@ public class AltosFrequency {
 
                return diff < 0.010;
        }
-
-       public AltosHashSet hashSet() {
-               AltosHashSet    h = new AltosHashSet();
-
-               h.putDouble("frequency", frequency);
-               h.putString("description", description);
-               return h;
-       }
-
        public AltosFrequency(double f, String d) {
                frequency = f;
                description = d;
        }
-
-       private AltosFrequency(AltosHashSet h) {
-               frequency = h.getDouble("frequency", 0.0);
-               description = h.getString("description", "");
-       }
-
-       public static AltosFrequency fromHashSet(AltosHashSet h, AltosFrequency def) {
-               if (h == null)
-                       return def;
-               return new AltosFrequency(h);
-       }
 }