From 3c12ba5134f2aa9d19c0c9a54af89d368f389eb4 Mon Sep 17 00:00:00 2001 From: vng Date: Sat, 24 Jul 2021 12:50:28 +0300 Subject: [PATCH] [routing] Do not create TrafficStash instance. Signed-off-by: vng --- routing/index_router.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/routing/index_router.cpp b/routing/index_router.cpp index ec7784e2b3..bfe7448116 100644 --- a/routing/index_router.cpp +++ b/routing/index_router.cpp @@ -128,13 +128,10 @@ unique_ptr CreateDirectionsEngine(VehicleType vehicleType, UNREACHABLE(); } -shared_ptr CreateTrafficStash(VehicleType vehicleType, shared_ptr numMwmIds, - traffic::TrafficCache const & trafficCache) +shared_ptr CreateTrafficStash(VehicleType, shared_ptr, traffic::TrafficCache const &) { - if (vehicleType != VehicleType::Car) - return nullptr; - - return make_shared(trafficCache, numMwmIds); + return nullptr; + //return (vehicleType == VehicleType::Car ? make_shared(trafficCache, numMwmIds) : nullptr); } /// \returns true if the mwm is ready for index graph routing and cross mwm index graph routing.