summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Beattie <mike@ethernal.org>2012-09-07 17:53:20 +1200
committerMike Beattie <mike@ethernal.org>2012-09-07 17:53:20 +1200
commitbbbe1846346b4ba61330f535a12b7a5029877ee6 (patch)
tree9d1f91aac0a21005deefa4df2744f026f186e941
parent02d31db3d3255568cc348a41aa37a461d63ffde2 (diff)
altoslib: remove dead code
(if object creation fails, an exception will be thrown - not return null) Signed-off-by: Mike Beattie <mike@ethernal.org>
-rw-r--r--altoslib/AltosEepromIterable.java2
-rw-r--r--altoslib/AltosEepromMegaIterable.java2
2 files changed, 0 insertions, 4 deletions
diff --git a/altoslib/AltosEepromIterable.java b/altoslib/AltosEepromIterable.java
index 107ad9f0..7c752271 100644
--- a/altoslib/AltosEepromIterable.java
+++ b/altoslib/AltosEepromIterable.java
@@ -401,8 +401,6 @@ public class AltosEepromIterable extends AltosRecordIterable {
if (line == null)
break;
AltosOrderedRecord record = new AltosOrderedRecord(line, index++, prev_tick, prev_tick_valid);
- if (record == null)
- break;
if (record.cmd == AltosLib.AO_LOG_INVALID)
continue;
prev_tick = record.tick;
diff --git a/altoslib/AltosEepromMegaIterable.java b/altoslib/AltosEepromMegaIterable.java
index aeb9135d..f0786e12 100644
--- a/altoslib/AltosEepromMegaIterable.java
+++ b/altoslib/AltosEepromMegaIterable.java
@@ -450,8 +450,6 @@ public class AltosEepromMegaIterable extends AltosRecordIterable {
if (line == null)
break;
AltosOrderedMegaRecord record = new AltosOrderedMegaRecord(line, index++, prev_tick, prev_tick_valid);
- if (record == null)
- break;
if (record.cmd == AltosLib.AO_LOG_INVALID)
continue;
prev_tick = record.tick;