Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

r/m unused SimpleFuture

  • Loading branch information...
commit 220a828b7045c1e178d23bc6820b15e7725598d1 1 parent 75d5639
@jbellis jbellis authored
Showing with 0 additions and 37 deletions.
  1. +0 −37 src/java/org/apache/cassandra/db/compaction/CompactionManager.java
View
37 src/java/org/apache/cassandra/db/compaction/CompactionManager.java
@@ -864,43 +864,6 @@ public long getCompletedTasks()
return metrics.completedTasks.value();
}
- private static class SimpleFuture implements Future
- {
- private Runnable runnable;
-
- private SimpleFuture(Runnable r)
- {
- runnable = r;
- }
-
- public boolean cancel(boolean mayInterruptIfRunning)
- {
- throw new IllegalStateException("May not call SimpleFuture.cancel()");
- }
-
- public boolean isCancelled()
- {
- return false;
- }
-
- public boolean isDone()
- {
- return runnable == null;
- }
-
- public Object get() throws InterruptedException, ExecutionException
- {
- runnable.run();
- runnable = null;
- return runnable;
- }
-
- public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- {
- throw new IllegalStateException("May not call SimpleFuture.get(long, TimeUnit)");
- }
- }
-
private static class CleanupInfo extends CompactionInfo.Holder
{
private final SSTableReader sstable;
Please sign in to comment.
Something went wrong with that request. Please try again.