From 58e02f14e668ac19ada463b6094ac6c3ee30b8a3 Mon Sep 17 00:00:00 2001 From: Chumva Date: Sat, 20 Jul 2019 13:41:13 +0300 Subject: [PATCH] Remove unnecessary check for default color --- OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java index accb54a146..1b4dbbc8f0 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java @@ -1434,7 +1434,6 @@ public class ConfigureMapMenu { } public static String parseTrackColorName(RenderingRulesStorage renderer, int color) { - int defaultColor = -1; RenderingRule gpxRule = null; if (renderer != null) { gpxRule = renderer.getRenderingAttributeRule("gpx"); @@ -1446,9 +1445,6 @@ public class ConfigureMapMenu { if (!Algorithms.isEmpty(cName) && color == r.getIntPropertyValue(COLOR_ATTR)) { return cName; } - if (cName == null && defaultColor == -1) { - defaultColor = r.getIntPropertyValue(COLOR_ATTR); - } } } return Algorithms.colorToString(color);