Skip to content

Commit e78edcf

Browse files
younesschrififlomonster
authored andcommitted
editoast: remove assert results
1 parent 377da22 commit e78edcf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

editoast/src/views/train_schedule/simulation_report.rs

-4
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,6 @@ fn project_head_positions(
358358
let loc = &train_locations[loc_index];
359359
let position =
360360
projection.track_position(&Identifier(loc.track_section.clone()), loc.offset);
361-
let last_position = current_curve.last().unwrap().position;
362-
assert!(position.is_some_and(|p| p >= last_position));
363361
current_curve.push(GetCurvePoint {
364362
position: position.unwrap(),
365363
time: loc.time + departure_time,
@@ -374,8 +372,6 @@ fn project_head_positions(
374372
end_loc.path_offset,
375373
);
376374
let end_position = projection.track_position(&end_loc.track, end_loc.offset);
377-
let last_position = current_curve.last().unwrap().position;
378-
assert!(end_position.is_some_and(|p| p >= last_position));
379375
current_curve.push(GetCurvePoint {
380376
position: end_position.unwrap(),
381377
time: end_time + departure_time,

0 commit comments

Comments
 (0)