Commit e78edcf 1 parent 377da22 commit e78edcf Copy full SHA for e78edcf
File tree 1 file changed +0
-4
lines changed
editoast/src/views/train_schedule
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -358,8 +358,6 @@ fn project_head_positions(
358
358
let loc = & train_locations[ loc_index] ;
359
359
let position =
360
360
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) ) ;
363
361
current_curve. push ( GetCurvePoint {
364
362
position : position. unwrap ( ) ,
365
363
time : loc. time + departure_time,
@@ -374,8 +372,6 @@ fn project_head_positions(
374
372
end_loc. path_offset ,
375
373
) ;
376
374
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) ) ;
379
375
current_curve. push ( GetCurvePoint {
380
376
position : end_position. unwrap ( ) ,
381
377
time : end_time + departure_time,
You can’t perform that action at this time.
0 commit comments