From c70a19f4900f44d850514db3b82d3ff566676884 Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Tue, 24 Oct 2017 17:35:07 +0300 Subject: [PATCH] Remove unnecessary field --- OsmAnd/src/net/osmand/plus/search/QuickSearchHelper.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchHelper.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchHelper.java index 1ec6a96fa5..f52a06b239 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchHelper.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchHelper.java @@ -326,7 +326,6 @@ public class QuickSearchHelper implements ResourceListener { OsmandApplication app; private NominatimPoiFilter poiFilter; private NominatimPoiFilter addressFilter; - private int p; public SearchOnlineApi(OsmandApplication app) { super(ObjectType.ONLINE_SEARCH); @@ -342,7 +341,6 @@ public class QuickSearchHelper implements ResourceListener { String text = phrase.getUnknownSearchPhrase(); poiFilter.setFilterByName(text); addressFilter.setFilterByName(text); - p = 0; publishAmenities(phrase, matcher, poiFilter.initializeNewSearch(lat, lon, -1, null, phrase.getRadiusLevel()), true); publishAmenities(phrase, matcher, addressFilter.initializeNewSearch(lat, lon, -1, null, -1), false); return true; @@ -370,7 +368,7 @@ public class QuickSearchHelper implements ResourceListener { SearchResult sr = new SearchResult(phrase); sr.localeName = amenity.getName(); sr.object = amenity; - sr.priority = poi ? SEARCH_ONLINE_AMENITY_PRIORITY : SEARCH_ONLINE_ADDRESS_PRIORITY + (p++); + sr.priority = poi ? SEARCH_ONLINE_AMENITY_PRIORITY : SEARCH_ONLINE_ADDRESS_PRIORITY; sr.objectType = poi ? ObjectType.POI : ObjectType.ONLINE_ADDRESS; sr.location = amenity.getLocation(); sr.preferredZoom = 17;