comment unused fields in pt result conversion

This commit is contained in:
MadWasp79 2020-04-17 17:29:42 +03:00
parent a128455d7e
commit 9cc7a4f6d5

View file

@ -1064,14 +1064,14 @@ public class TransportRoutePlanner {
s.y31 = ns.y31; s.y31 = ns.y31;
// List<TransportRoute> routes1 = new ArrayList<>(); // List<TransportRoute> routes1 = new ArrayList<>();
//cache routes to avoid circular conversion and just search them by id //cache routes to avoid circular conversion and just search them by id
for (int i = 0; i < ns.routes.length; i++) { // for (int i = 0; i < ns.routes.length; i++) {
if (s.getRoutesIds().length == ns.routes.length && convertedRoutesCache != null // if (s.getRoutesIds().length == ns.routes.length && convertedRoutesCache != null
&& convertedRoutesCache.get(ns.routesIds[i]) != null) { // && convertedRoutesCache.get(ns.routesIds[i]) != null) {
s.addRoute(convertedRoutesCache.get(ns.routesIds[i])); // s.addRoute(convertedRoutesCache.get(ns.routesIds[i]));
} else { // } else {
s.addRoute(convertTransportRoute(ns.routes[i])); // s.addRoute(convertTransportRoute(ns.routes[i]));
} // }
} // }
if (ns.pTStopExit_refs != null && ns.pTStopExit_refs.length > 0) { if (ns.pTStopExit_refs != null && ns.pTStopExit_refs.length > 0) {
for (int i = 0; i < ns.pTStopExit_refs.length; i++) { for (int i = 0; i < ns.pTStopExit_refs.length; i++) {