Skip to content

Commit

Permalink
remove useless condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bobjacobsen committed Aug 18, 2019
1 parent 299da44 commit c08df5c
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions java/src/jmri/jmrit/timetable/swing/TimeTableGraphCommon.java
Expand Up @@ -304,19 +304,18 @@ void drawTrains() {
continue;
}

if (activeSeg) {
if (stopSegmentId != _segmentId) {
// No longer in active segment, do the end process
setEnd(stop, true);
activeSeg = false;
continue;
} else {
drawLine(stop);
if (_lastStop) {
// At the end, do the end process
setEnd(stop, false);
break;
}
// activeSeg always true here
if (stopSegmentId != _segmentId) {
// No longer in active segment, do the end process
setEnd(stop, true);
activeSeg = false;
continue;
} else {
drawLine(stop);
if (_lastStop) {
// At the end, do the end process
setEnd(stop, false);
break;
}
}
}
Expand Down

0 comments on commit c08df5c

Please sign in to comment.