Revert "[routing] Do not create TrafficStash instance."

This reverts commit 3c12ba5134f2aa9d19c0c9a54af89d368f389eb4.
This commit is contained in:
mvglasow
2025-04-29 23:46:09 +03:00
parent 932dda6552
commit 1574b5b7cb

View File

@@ -130,10 +130,13 @@ unique_ptr<DirectionsEngine> CreateDirectionsEngine(VehicleType vehicleType,
UNREACHABLE();
}
shared_ptr<TrafficStash> CreateTrafficStash(VehicleType, shared_ptr<NumMwmIds>, traffic::TrafficCache const &)
shared_ptr<TrafficStash> CreateTrafficStash(VehicleType vehicleType, shared_ptr<NumMwmIds> numMwmIds,
traffic::TrafficCache const & trafficCache)
{
return nullptr;
//return (vehicleType == VehicleType::Car ? make_shared<TrafficStash>(trafficCache, numMwmIds) : nullptr);
if (vehicleType != VehicleType::Car)
return nullptr;
return make_shared<TrafficStash>(trafficCache, numMwmIds);
}
void PushPassedSubroutes(Checkpoints const & checkpoints, vector<Route::SubrouteAttrs> & subroutes)