From 5d3497358c7fb07c5803dcaeb5d0d2992273628c Mon Sep 17 00:00:00 2001 From: Youness Chrifi Alaoui Date: Thu, 7 Dec 2023 15:08:22 +0100 Subject: [PATCH] editoast: remove assert results --- editoast/src/views/train_schedule/simulation_report.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/editoast/src/views/train_schedule/simulation_report.rs b/editoast/src/views/train_schedule/simulation_report.rs index a911becf4d2..63c3294489c 100644 --- a/editoast/src/views/train_schedule/simulation_report.rs +++ b/editoast/src/views/train_schedule/simulation_report.rs @@ -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, @@ -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,