summaryrefslogtreecommitdiff
path: root/altoslib/AltosGPSSat.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-06-17 00:52:38 -0700
committerKeith Packard <keithp@keithp.com>2016-06-17 01:03:40 -0700
commit1dce20f7eee56166ac61798ca26eeb323dc8f012 (patch)
treee7f64afa79991e10d0b7aa680e98af3ce96a62bb /altoslib/AltosGPSSat.java
parent7175774c4f60ed3efd54417f2035b50ea0108c7b (diff)
altoslib: Get rid of manual JSON encoding stuff
Now that the reflective JSON stuff is working, we can delete all of the manual code. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosGPSSat.java')
-rw-r--r--altoslib/AltosGPSSat.java25
1 files changed, 1 insertions, 24 deletions
diff --git a/altoslib/AltosGPSSat.java b/altoslib/AltosGPSSat.java
index 8cdeed0e..8b95c150 100644
--- a/altoslib/AltosGPSSat.java
+++ b/altoslib/AltosGPSSat.java
@@ -22,7 +22,7 @@ import java.text.*;
import java.util.*;
import java.util.concurrent.*;
-public class AltosGPSSat implements AltosJsonable {
+public class AltosGPSSat {
public int svid;
public int c_n0;
@@ -33,28 +33,5 @@ public class AltosGPSSat implements AltosJsonable {
public AltosGPSSat() {
}
-
- public AltosJson json() {
- AltosJson j = new AltosJson();
- j.put("svid", svid);
- j.put("c_n0", c_n0);
- return j;
- }
-
- private AltosGPSSat(AltosJson j) {
- svid = j.get_int("svid", 0);
- c_n0 = j.get_int("c_n0", 0);
- }
-
- static public AltosGPSSat[] json_array(AltosJson j) {
- if (j == null)
- return null;
-
- int size = j.size();
- AltosGPSSat[] sats = new AltosGPSSat[size];
- for (int i = 0; i < size; i++)
- sats[i] = new AltosGPSSat(j.get(i));
- return sats;
- }
}