Rename strings and delete unused

This commit is contained in:
Victor Shcherb 2016-07-31 19:39:45 +02:00
parent 693be5c2b9
commit f90778023e
2 changed files with 7 additions and 4 deletions

View file

@ -795,7 +795,7 @@ public class BinaryMapPoiReaderAdapter {
// break;
case OsmandOdb.OsmAndPoiCategories.CATEGORIES_FIELD_NUMBER:
PoiCategory type = poiTypes.getOtherPoiCategory();
String subcat = "";
String subtype = "";
int cat = codedIS.readUInt32();
int subcatId = cat >> SHIFT_BITS_CATEGORY;
int catId = cat & CATEGORY_MASK;
@ -803,10 +803,11 @@ public class BinaryMapPoiReaderAdapter {
type = region.categoriesType.get(catId);
List<String> subcats = region.subcategories.get(catId);
if (subcatId < subcats.size()) {
subcat = subcats.get(subcatId);
subtype = subcats.get(subcatId);
}
}
if (req.poiTypeFilter.accept(type, subcat)) {
subtype = poiTypes.replaceDeprecatedSubtype(type, subtype);
if (req.poiTypeFilter.accept(type, subtype)) {
codedIS.skipRawBytes(codedIS.getBytesUntilLimit());
return true;
}

View file

@ -1 +1,3 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?><resources/>
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources>
</resources>