remove obsolete code

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

View file

@ -149,13 +149,10 @@ public class RouteInfoWidgetsFactory {
deviatedFromRoute = routingHelper.isDeviatedFromRoute() ; deviatedFromRoute = routingHelper.isDeviatedFromRoute() ;
NextDirectionInfo r = routingHelper.getNextRouteDirectionInfo(calc1, true); NextDirectionInfo r = routingHelper.getNextRouteDirectionInfo(calc1, true);
if (!deviatedFromRoute) { if (!deviatedFromRoute) {
if (r != null) {
r = routingHelper.getNextRouteDirectionInfo(calc1, true);
if (r != null) { if (r != null) {
r = routingHelper.getNextRouteDirectionInfoAfter(r, calc1, true); r = routingHelper.getNextRouteDirectionInfoAfter(r, calc1, true);
} }
} }
}
if (r != null && r.distanceTo > 0 && r.directionInfo != null) { if (r != null && r.distanceTo > 0 && r.directionInfo != null) {
turnType = r.directionInfo.getTurnType(); turnType = r.directionInfo.getTurnType();
turnImminent = r.imminent; turnImminent = r.imminent;