From 32d1a3a36e639f4ec936555915487e7f149b949a Mon Sep 17 00:00:00 2001 From: mvglasow Date: Sun, 19 Oct 2025 17:59:48 +0300 Subject: [PATCH] [traffic] Eliminate any ETA calculations, always return weight Signed-off-by: mvglasow --- libs/traffxml/traff_decoder.cpp | 5 +---- libs/traffxml/traff_decoder.hpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/libs/traffxml/traff_decoder.cpp b/libs/traffxml/traff_decoder.cpp index dc58135e9..7a0a4d29e 100644 --- a/libs/traffxml/traff_decoder.cpp +++ b/libs/traffxml/traff_decoder.cpp @@ -580,11 +580,8 @@ double RoutingTraffDecoder::TraffEstimator::GetFerryLandingPenalty(Purpose /* pu } double RoutingTraffDecoder::TraffEstimator::CalcOffroad(ms::LatLon const & from, ms::LatLon const & to, - Purpose purpose) const + Purpose /* purpose */) const { - if (purpose == Purpose::ETA) - return 0.0; - double result = ms::DistanceOnEarth(from, to); result *= kOffroadPenalty; diff --git a/libs/traffxml/traff_decoder.hpp b/libs/traffxml/traff_decoder.hpp index e1e50f379..dbe1ab4bb 100644 --- a/libs/traffxml/traff_decoder.hpp +++ b/libs/traffxml/traff_decoder.hpp @@ -300,7 +300,7 @@ public: * @param purpose The purpose for which the result is to be used. * @return Travel time in seconds. */ - double CalcOffroad(ms::LatLon const & from, ms::LatLon const & to, Purpose purpose) const override; + double CalcOffroad(ms::LatLon const & from, ms::LatLon const & to, Purpose /* purpose */) const override; double CalcSegmentWeight(routing::Segment const & segment, routing::RoadGeometry const & road, Purpose /* purpose */) const override; /**