From d9c81c6d3992617441ce087b1d85478bf772494e Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Wed, 11 Apr 2012 09:51:31 +0200 Subject: Remove Task type, whose name field is never used Task is only a Runnable with a name field, whose value is never consulted. --- main/src/cgeo/geocaching/StaticMapsProvider.java | 3 +-- main/src/cgeo/geocaching/concurrent/Task.java | 16 ---------------- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 main/src/cgeo/geocaching/concurrent/Task.java (limited to 'main/src') 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; - } -} -- cgit v1.1