Skip to content

Commit

Permalink
editoast: remove assert results
Browse files Browse the repository at this point in the history
  • Loading branch information
younesschrifi authored and flomonster committed Dec 7, 2023
1 parent 377da22 commit e78edcf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions editoast/src/views/train_schedule/simulation_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,6 @@ fn project_head_positions(
let loc = &train_locations[loc_index];
let position =
projection.track_position(&Identifier(loc.track_section.clone()), loc.offset);
let last_position = current_curve.last().unwrap().position;
assert!(position.is_some_and(|p| p >= last_position));
current_curve.push(GetCurvePoint {
position: position.unwrap(),
time: loc.time + departure_time,
Expand All @@ -374,8 +372,6 @@ fn project_head_positions(
end_loc.path_offset,
);
let end_position = projection.track_position(&end_loc.track, end_loc.offset);
let last_position = current_curve.last().unwrap().position;
assert!(end_position.is_some_and(|p| p >= last_position));
current_curve.push(GetCurvePoint {
position: end_position.unwrap(),
time: end_time + departure_time,
Expand Down

0 comments on commit e78edcf

Please sign in to comment.