diff --git a/OsmAnd-java/src/net/osmand/binary/BinaryMapRouteReaderAdapter.java b/OsmAnd-java/src/net/osmand/binary/BinaryMapRouteReaderAdapter.java index 9f526d38e9..f4c5323ec0 100644 --- a/OsmAnd-java/src/net/osmand/binary/BinaryMapRouteReaderAdapter.java +++ b/OsmAnd-java/src/net/osmand/binary/BinaryMapRouteReaderAdapter.java @@ -52,7 +52,6 @@ public class BinaryMapRouteReaderAdapter { public final static int TRAFFIC_SIGNALS = 6; public final static int RAILWAY_CROSSING = 7; private final static int LANES = 8; - private static final int TUNNEL = 9; private final String t; private final String v; private int intValue; @@ -202,8 +201,6 @@ public class BinaryMapRouteReaderAdapter { if (i > 0) { intValue = Integer.parseInt(v.substring(0, i)); } - } else if (t.equalsIgnoreCase("tunnel") && v != null) { - type = TUNNEL; } } } diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java index 958590af65..5dbe4db73f 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java @@ -16,7 +16,6 @@ import net.osmand.plus.ApplicationMode; import net.osmand.plus.IconsCache; import net.osmand.plus.OsmAndFormatter; import net.osmand.plus.OsmandApplication; -import net.osmand.plus.OsmandSettings; import net.osmand.plus.OsmandSettings.MetricsConstants; import net.osmand.plus.R; import net.osmand.plus.TargetPointsHelper.TargetPoint; diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index f750ffa8b2..c8278e2314 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -17,7 +17,6 @@ import android.hardware.GeomagneticField; import android.os.BatteryManager; import android.support.annotation.NonNull; import android.text.format.DateFormat; -import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; @@ -1294,8 +1293,7 @@ public class RouteInfoWidgetsFactory { visible = peds; } else if (alarm.getType() == AlarmInfoType.TUNNEL) { visible = tunnels; - } - else { + } else { visible = trafficWarnings; } }