[java] Remove dead code

java/runtime/MercuryThreadPool.java:
    As above.
This commit is contained in:
Paul Bone
2014-12-09 17:16:40 +11:00
parent 8dbad3cc39
commit a17d976d86

View File

@@ -49,8 +49,6 @@ public class MercuryThreadPool
{
public static final boolean debug = false;
private static MercuryThreadPool instance;
private MercuryThreadFactory thread_factory;
/*
@@ -440,29 +438,6 @@ public class MercuryThreadPool
}
}
/**
* Get the number of currently queued tasks.
* @return true if all tasks have been completed.
*/
protected boolean checkTasks()
{
long num_tasks_submitted;
long num_tasks_completed;
boolean done;
tasks_lock.lock();
try {
num_tasks_submitted = this.num_tasks_submitted;
num_tasks_completed = this.num_tasks_completed;
done = (num_tasks_submitted == num_tasks_completed);
} finally {
tasks_lock.unlock();
}
return done;
}
/**
* Run the thread pool. This is usually called by runMain()
*/