aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-02-27 22:27:16 +0100
committerSamuel Tardieu <sam@rfc1149.net>2014-02-27 22:28:06 +0100
commit2e9876b2996e9a8a2faec284e7b812f9ec2aaafa (patch)
treeb11ffe2457d3321be86cf7f6aa27c25a799c39c3
parent409564ad5663cda458ddff41d6fa31ed27fb4fb0 (diff)
downloadcgeo-2e9876b2996e9a8a2faec284e7b812f9ec2aaafa.zip
cgeo-2e9876b2996e9a8a2faec284e7b812f9ec2aaafa.tar.gz
cgeo-2e9876b2996e9a8a2faec284e7b812f9ec2aaafa.tar.bz2
refactoring: remove useless yield()
-rw-r--r--main/src/cgeo/geocaching/CacheListActivity.java4
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java4
2 files changed, 0 insertions, 8 deletions
diff --git a/main/src/cgeo/geocaching/CacheListActivity.java b/main/src/cgeo/geocaching/CacheListActivity.java
index 883c70f..6b5d30e 100644
--- a/main/src/cgeo/geocaching/CacheListActivity.java
+++ b/main/src/cgeo/geocaching/CacheListActivity.java
@@ -1187,12 +1187,10 @@ public class CacheListActivity extends AbstractListActivity implements FilteredA
if (response != null && response.length() > 2) {
delay = 1;
handler.sendMessage(handler.obtainMessage(1, response));
- yield();
Geocache.storeCache(null, response, listIdLFW, false, null);
handler.sendMessage(handler.obtainMessage(2, response));
- yield();
} else if ("RG".equals(response)) {
//Server returned RG (registration) and this device no longer registered.
Settings.setWebNameCode(null, null);
@@ -1202,7 +1200,6 @@ public class CacheListActivity extends AbstractListActivity implements FilteredA
} else {
delay = 0;
handler.sendEmptyMessage(0);
- yield();
}
}
if (responseFromWeb == null || responseFromWeb.getStatusLine().getStatusCode() != 200) {
@@ -1212,7 +1209,6 @@ public class CacheListActivity extends AbstractListActivity implements FilteredA
}
try {
- yield();
if (delay == 0) {
sleep(5000); //No caches 5s
times++;
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java
index 1d8e1b4..6730ba9 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -1052,7 +1052,6 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
}
}
- yield();
} catch (Exception e) {
Log.w("CGeoMap.LoadTimer.run", e);
}
@@ -1379,9 +1378,6 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
detailProgress++;
handler.sendEmptyMessage(UPDATE_PROGRESS);
}
-
- // FIXME: what does this yield() do here?
- yield();
}
// we're done