remove obsolete code

This commit is contained in:
sonora 2016-05-22 08:48:56 +02:00
parent 4f2c9931dd
commit 8a43f27110

View file

@ -150,10 +150,7 @@ public class RouteInfoWidgetsFactory {
NextDirectionInfo r = routingHelper.getNextRouteDirectionInfo(calc1, true);
if (!deviatedFromRoute) {
if (r != null) {
r = routingHelper.getNextRouteDirectionInfo(calc1, true);
if (r != null) {
r = routingHelper.getNextRouteDirectionInfoAfter(r, calc1, true);
}
r = routingHelper.getNextRouteDirectionInfoAfter(r, calc1, true);
}
}
if (r != null && r.distanceTo > 0 && r.directionInfo != null) {