aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeo.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-04-28 11:57:11 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-04-28 11:57:11 +0200
commitdf818896e51226faf3f9c7cd1665102dd0a1f967 (patch)
tree4da2e39ba1e5c0d78563c7bed60f2774b463f3b7 /main/src/cgeo/geocaching/cgeo.java
parent6050f7ce2d80ecdfc0d890e86ebacbe474bbbc1c (diff)
downloadcgeo-df818896e51226faf3f9c7cd1665102dd0a1f967.zip
cgeo-df818896e51226faf3f9c7cd1665102dd0a1f967.tar.gz
cgeo-df818896e51226faf3f9c7cd1665102dd0a1f967.tar.bz2
Refactoring: remove useless assignments
Diffstat (limited to 'main/src/cgeo/geocaching/cgeo.java')
-rw-r--r--main/src/cgeo/geocaching/cgeo.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/cgeo.java b/main/src/cgeo/geocaching/cgeo.java
index 775815c..19dd5bf 100644
--- a/main/src/cgeo/geocaching/cgeo.java
+++ b/main/src/cgeo/geocaching/cgeo.java
@@ -360,10 +360,8 @@ public class cgeo extends AbstractActivity {
// context menu for offline button
if (v.getId() == R.id.search_offline) {
- List<StoredList> cacheLists = app.getLists();
- int listCount = cacheLists.size();
menu.setHeaderTitle(res.getString(R.string.list_title));
- for (final StoredList list : cacheLists) {
+ for (final StoredList list : app.getLists()) {
menu.add(Menu.NONE, MENU_OPEN_LIST + list.id, Menu.NONE, list.getTitleAndCount());
}
return;