mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 13:53:37 +00:00
Revert "[routing] Do not create TrafficStash instance."
This reverts commit 3c12ba5134f2aa9d19c0c9a54af89d368f389eb4.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user