From 091d510ba1704fac49e600fdd18768baeba1bf67 Mon Sep 17 00:00:00 2001 From: mvglasow Date: Tue, 14 Oct 2025 21:52:12 +0300 Subject: [PATCH] [traffic] Simplify ferry landing penalty in TraFF decoder Signed-off-by: mvglasow --- libs/traffxml/traff_decoder.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libs/traffxml/traff_decoder.cpp b/libs/traffxml/traff_decoder.cpp index d4288bd5d..aea01e2fa 100644 --- a/libs/traffxml/traff_decoder.cpp +++ b/libs/traffxml/traff_decoder.cpp @@ -565,14 +565,9 @@ double RoutingTraffDecoder::TraffEstimator::GetTurnPenalty(Purpose /* purpose */ return 0.0; } -double RoutingTraffDecoder::TraffEstimator::GetFerryLandingPenalty(Purpose purpose) const +double RoutingTraffDecoder::TraffEstimator::GetFerryLandingPenalty(Purpose /* purpose */) const { - switch (purpose) - { - case Purpose::Weight: return 20 * 60; // seconds - case Purpose::ETA: return 20 * 60; // seconds - } - UNREACHABLE(); + return 20 * 60; // seconds } double RoutingTraffDecoder::TraffEstimator::CalcOffroad(ms::LatLon const & from, ms::LatLon const & to,