diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-11 09:51:31 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-11 23:23:15 +0200 |
| commit | d9c81c6d3992617441ce087b1d85478bf772494e (patch) | |
| tree | 2edf2618b11e7d785162dd245314aeb0d17aa881 | |
| parent | 7e1257f36fb3eaf64abae81b79fac271b5b76957 (diff) | |
| download | cgeo-d9c81c6d3992617441ce087b1d85478bf772494e.zip cgeo-d9c81c6d3992617441ce087b1d85478bf772494e.tar.gz cgeo-d9c81c6d3992617441ce087b1d85478bf772494e.tar.bz2 | |
Remove Task type, whose name field is never used
Task is only a Runnable with a name field, whose value is never
consulted.
| -rw-r--r-- | main/src/cgeo/geocaching/StaticMapsProvider.java | 3 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/concurrent/Task.java | 16 |
2 files changed, 1 insertions, 18 deletions
diff --git a/main/src/cgeo/geocaching/StaticMapsProvider.java b/main/src/cgeo/geocaching/StaticMapsProvider.java index 9c17a34..17601af 100644 --- a/main/src/cgeo/geocaching/StaticMapsProvider.java +++ b/main/src/cgeo/geocaching/StaticMapsProvider.java @@ -1,7 +1,6 @@ package cgeo.geocaching; import cgeo.geocaching.concurrent.BlockingThreadPool; -import cgeo.geocaching.concurrent.Task; import cgeo.geocaching.files.LocalStorage; import cgeo.geocaching.geopoint.GeopointFormatter.Format; import cgeo.geocaching.network.Network; @@ -146,7 +145,7 @@ public class StaticMapsProvider { downloadDifferentZooms(cache, markerUrl, prefix, latlonMap, edge, waypoints); } else { - Task currentTask = new Task("getting static map") { + final Runnable currentTask = new Runnable() { @Override public void run() { downloadDifferentZooms(cache, markerUrl, prefix, latlonMap, edge, waypoints); diff --git a/main/src/cgeo/geocaching/concurrent/Task.java b/main/src/cgeo/geocaching/concurrent/Task.java deleted file mode 100644 index 2472538..0000000 --- a/main/src/cgeo/geocaching/concurrent/Task.java +++ /dev/null @@ -1,16 +0,0 @@ -package cgeo.geocaching.concurrent; - -/** - * Basic class for Runnables added to ThreadPool. - */ -public abstract class Task implements Runnable { - private String name = null; - - public Task(String name) { - this.name = name; - } - - public String getName() { - return this.name; - } -} |
