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; /**