From: Mike Beattie Date: Fri, 7 Sep 2012 05:53:20 +0000 (+1200) Subject: altoslib: remove dead code X-Git-Tag: 1.1~29^2~6 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=bbbe1846346b4ba61330f535a12b7a5029877ee6 altoslib: remove dead code (if object creation fails, an exception will be thrown - not return null) Signed-off-by: Mike Beattie --- 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;