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,