From 1645de6a91d12cde4f6a4904525baedac0a8bdbb Mon Sep 17 00:00:00 2001 From: PaulStets Date: Sun, 13 May 2018 16:34:57 +0300 Subject: [PATCH] Fixed unnecessary throws removal --- .../src/net/osmand/plus/download/DownloadResources.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java index 93b916b2bf..2eeac7818c 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java @@ -461,16 +461,11 @@ public class DownloadResources extends DownloadResourceGroup { return findIndexItemsAt(app, latLon, type, false); } - public static List findIndexItemsAt(OsmandApplication app, LatLon latLon, DownloadActivityType type, boolean includeDownloaded) { + public static List findIndexItemsAt(OsmandApplication app, LatLon latLon, DownloadActivityType type, boolean includeDownloaded) throws IOException { List res = new ArrayList<>(); OsmandRegions regions = app.getRegions(); DownloadIndexesThread downloadThread = app.getDownloadThread(); - List downloadRegions = null; - try { - downloadRegions = regions.getWoldRegions(latLon); - } catch (IOException e) { - android.util.Log.e(TAG, e.getMessage(), e); - } + List downloadRegions = regions.getWoldRegions(latLon); if (downloadRegions != null) { for (WorldRegion downloadRegion : downloadRegions) { if (includeDownloaded || !isIndexItemDownloaded(downloadThread, type, downloadRegion, res)) {