From: Mike Beattie Date: Fri, 14 Sep 2012 01:16:16 +0000 (+1200) Subject: altosui: comment out/remove dead code X-Git-Tag: 1.1.9.1~55^2~2 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=d3d69bdecfcb45d1e3a8c6b10c80eef1afcc2310 altosui: comment out/remove dead code Signed-off-by: Mike Beattie --- diff --git a/altosui/AltosGraphUI.java b/altosui/AltosGraphUI.java index f2addfd3..cb8e3d20 100644 --- a/altosui/AltosGraphUI.java +++ b/altosui/AltosGraphUI.java @@ -182,8 +182,6 @@ public class AltosGraphUI extends AltosFrame super(String.format("Altos Graph %s", name)); AltosDataPointReader reader = new AltosDataPointReader (records); - if (reader == null) - return; if (reader.has_accel) init(reader, records, 0); diff --git a/altosui/AltosInfoTable.java b/altosui/AltosInfoTable.java index d578f2d2..86e02ab1 100644 --- a/altosui/AltosInfoTable.java +++ b/altosui/AltosInfoTable.java @@ -145,6 +145,7 @@ public class AltosInfoTable extends JTable { info_add_row(1, "GPS height", "%6.0f", state.gps_height); /* The SkyTraq GPS doesn't report these values */ + /* if (false) { info_add_row(1, "GPS ground speed", "%8.1f m/s %3d°", state.gps.ground_speed, @@ -154,6 +155,8 @@ public class AltosInfoTable extends JTable { info_add_row(1, "GPS error", "%6d m(h)%3d m(v)", state.gps.h_error, state.gps.v_error); } + */ + info_add_row(1, "GPS hdop", "%8.1f", state.gps.hdop); if (state.npad > 0) {