From 8a43f27110b5a63a58f05a21c41d240ca832d172 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 22 May 2016 08:48:56 +0200 Subject: [PATCH] remove obsolete code --- .../plus/views/mapwidgets/RouteInfoWidgetsFactory.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index bfea72e9c6..a349f41f33 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -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) {