From f24e491ebb252d7bf653386cac0167bb1f9b3027 Mon Sep 17 00:00:00 2001 From: Nazar-Kutz Date: Thu, 1 Oct 2020 11:13:02 +0300 Subject: [PATCH] delete unnecessary code --- OsmAnd/src/net/osmand/plus/ContextMenuAdapter.java | 9 --------- OsmAnd/src/net/osmand/plus/render/RendererRegistry.java | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/ContextMenuAdapter.java b/OsmAnd/src/net/osmand/plus/ContextMenuAdapter.java index 0842a1923e..7263f119bd 100644 --- a/OsmAnd/src/net/osmand/plus/ContextMenuAdapter.java +++ b/OsmAnd/src/net/osmand/plus/ContextMenuAdapter.java @@ -100,15 +100,6 @@ public class ContextMenuAdapter { return items.get(position); } - public ContextMenuItem getItemById(@NonNull String id) { - for (ContextMenuItem item : items) { - if (id.equals(item.getId())) { - return item; - } - } - return null; - } - public List getItems() { return items; } diff --git a/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java b/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java index d382fa9882..3f8ed81ba7 100644 --- a/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java +++ b/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java @@ -334,7 +334,7 @@ public class RendererRegistry { return currentSelectedRender; } - public void setCurrentSelectedRender(final RenderingRulesStorage currentSelectedRender) { + public void setCurrentSelectedRender(RenderingRulesStorage currentSelectedRender) { this.currentSelectedRender = currentSelectedRender; }