Inlined routes and waypoints, as all services are using at least one of those object, so there is no need for another one level of indirection.

This commit is contained in:
Denis Chaplygin
2019-08-08 18:46:32 +03:00
parent a44a75b211
commit 533f1ffc6b
12 changed files with 53 additions and 570 deletions
+2 -2
View File
@@ -77,12 +77,12 @@ class TableAPI final : public BaseAPI
// symmetric case
if (parameters.sources.empty())
{
table.add_sources(MakeWaypoints(fb_result, phantoms));
response.add_waypoints(MakeWaypoints(fb_result, phantoms));
number_of_sources = phantoms.size();
}
else
{
table.add_sources(MakeWaypoints(fb_result, phantoms, parameters.sources));
response.add_waypoints(MakeWaypoints(fb_result, phantoms, parameters.sources));
}
if (parameters.destinations.empty())