From 4e624bd04b0b75d22e9b1f1bd1f33a61d8e3e9f8 Mon Sep 17 00:00:00 2001 From: mvglasow Date: Sun, 19 Oct 2025 17:45:25 +0300 Subject: [PATCH] [traffic] Comment out unused argument Signed-off-by: mvglasow --- libs/traffxml/traff_decoder.cpp | 2 +- libs/traffxml/traff_decoder.hpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/traffxml/traff_decoder.cpp b/libs/traffxml/traff_decoder.cpp index 1c3b82a17..dc58135e9 100644 --- a/libs/traffxml/traff_decoder.cpp +++ b/libs/traffxml/traff_decoder.cpp @@ -599,7 +599,7 @@ double RoutingTraffDecoder::TraffEstimator::CalcOffroad(ms::LatLon const & from, * - road class mismatch * - road ref mismatch */ -double RoutingTraffDecoder::TraffEstimator::CalcSegmentWeight(routing::Segment const & segment, routing::RoadGeometry const & road, Purpose purpose) const +double RoutingTraffDecoder::TraffEstimator::CalcSegmentWeight(routing::Segment const & segment, routing::RoadGeometry const & road, Purpose /* purpose */) const { double result = road.GetDistance(segment.GetSegmentIdx()); diff --git a/libs/traffxml/traff_decoder.hpp b/libs/traffxml/traff_decoder.hpp index c728f8309..e1e50f379 100644 --- a/libs/traffxml/traff_decoder.hpp +++ b/libs/traffxml/traff_decoder.hpp @@ -301,7 +301,7 @@ public: * @return Travel time in seconds. */ 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; + double CalcSegmentWeight(routing::Segment const & segment, routing::RoadGeometry const & road, Purpose /* purpose */) const override; /** * @brief Determines the penalty factor based on how two reference numbers match. @@ -317,9 +317,9 @@ public: double GetRoadRefPenalty(std::string & ref) const; double GetUTurnPenalty(Purpose /* purpose */) const override; - double GetTurnPenalty(Purpose purpose, double angle, routing::RoadGeometry const & from_road, + double GetTurnPenalty(Purpose /* purpose */, double angle, routing::RoadGeometry const & from_road, routing::RoadGeometry const & to_road, bool is_left_hand_traffic = false) const override; - double GetFerryLandingPenalty(Purpose purpose) const override; + double GetFerryLandingPenalty(Purpose /* purpose */) const override; private: RoutingTraffDecoder & m_decoder;