From 14085f0656109c71a441e8dc144911a9c326dc29 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Wed, 9 Jan 2013 23:00:37 +0100 Subject: Remove redundant initializer --- main/src/cgeo/geocaching/cgeocaches.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'main/src') diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java index 628c012..54b863c 100644 --- a/main/src/cgeo/geocaching/cgeocaches.java +++ b/main/src/cgeo/geocaching/cgeocaches.java @@ -1787,16 +1787,14 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity return; } - SearchResult searchToUse = search; - // apply filter settings (if there's a filter) Set geocodes = new HashSet(); for (cgCache cache : adapter.getFilteredList()) { geocodes.add(cache.getGeocode()); } - searchToUse = new SearchResult(geocodes); - int count = searchToUse.getCount(); + final SearchResult searchToUse = new SearchResult(geocodes); + final int count = searchToUse.getCount(); String mapTitle = title; if (count > 0) { mapTitle = title + " [" + count + "]"; -- cgit v1.1