altoslib: remove dead code
authorMike Beattie <mike@ethernal.org>
Fri, 7 Sep 2012 05:53:20 +0000 (17:53 +1200)
committerMike Beattie <mike@ethernal.org>
Fri, 7 Sep 2012 05:53:20 +0000 (17:53 +1200)
(if object creation fails, an exception will be thrown - not return null)

Signed-off-by: Mike Beattie <mike@ethernal.org>
altoslib/AltosEepromIterable.java
altoslib/AltosEepromMegaIterable.java

index 107ad9f0023d2c154f785fc4d5891b20652c7bc0..7c7522710245f0955dd4b9388c6167eb29835742 100644 (file)
@@ -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;
index aeb9135d6a1e1339958c31b6dd3032725bc49530..f0786e123697fee701912f8b67a7c14be1ad5342 100644 (file)
@@ -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;