diff --git a/core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/pipelines/MaxSpeedEnvelope.kt b/core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/pipelines/MaxSpeedEnvelope.kt index 6c76f2d7378..365691832db 100644 --- a/core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/pipelines/MaxSpeedEnvelope.kt +++ b/core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/pipelines/MaxSpeedEnvelope.kt @@ -135,19 +135,17 @@ object MaxSpeedEnvelope { var envelope = curveWithDecelerations val stops = makeSimStops(context, stopPositions, envelope) envelope = addETCSStopBrakingCurves(etcsSimulator, context, envelope, stops) - envelope = addConstStopBrakingCurves(etcsSimulator, context, envelope, stops) + envelope = addConstStopBrakingCurves(context, envelope, stops) return envelope } /** Generate braking curves overlay at every stop position */ private fun addConstStopBrakingCurves( - etcsSimulator: ETCSBrakingSimulator, context: EnvelopeSimContext, curveWithDecelerations: Envelope, stops: List, ): Envelope { var envelope = curveWithDecelerations - envelope = addETCSStopBrakingCurves(etcsSimulator, context, envelope, stops) for (stop in stops) { if (stop.isETCS) continue // Already handled val partBuilder = EnvelopePartBuilder()