Skip to content

Commit 42126a7

Browse files
committed
core: remove deadcode computing stops
Signed-off-by: Florian Amsallem <[email protected]>
1 parent f89dfc3 commit 42126a7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

core/src/main/kotlin/fr/sncf/osrd/standalone_sim/ScheduleMetadataExtractor.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import fr.sncf.osrd.sim_infra.impl.ChunkPath
2121
import fr.sncf.osrd.sim_infra.utils.routesOnBlock
2222
import fr.sncf.osrd.standalone_sim.result.ResultPosition
2323
import fr.sncf.osrd.standalone_sim.result.ResultSpeed
24-
import fr.sncf.osrd.standalone_sim.result.ResultStops
2524
import fr.sncf.osrd.train.RollingStock
2625
import fr.sncf.osrd.train.TrainStop
2726
import fr.sncf.osrd.utils.indexing.StaticIdxList
@@ -116,13 +115,6 @@ fun runScheduleMetadataExtractor(
116115
headPositions.add(ResultPosition.from(point.time, point.position, trainPath, rawInfra))
117116
}
118117

119-
// Compute stops
120-
val stops = ArrayList<ResultStops>()
121-
for (stop in legacyStops) {
122-
val stopTime = envelopeWithStops.interpolateArrivalAt(stop.position)
123-
stops.add(ResultStops(stopTime, stop.position, stop.duration))
124-
}
125-
126118
// Compute signal updates
127119
val startOffset = trainPathBlockOffset(rawInfra, blockInfra, blockPath, chunkPath).distance
128120
val pathOffsetBuilder = PathOffsetBuilder(startOffset)

0 commit comments

Comments
 (0)