cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [2/2] git commit: r/m unused SimpleFuture
Date Mon, 08 Apr 2013 18:20:23 GMT
r/m unused SimpleFuture


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/220a828b
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/220a828b
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/220a828b

Branch: refs/heads/trunk
Commit: 220a828b7045c1e178d23bc6820b15e7725598d1
Parents: 75d5639
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Mon Apr 8 13:20:11 2013 -0500
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Mon Apr 8 13:20:11 2013 -0500

----------------------------------------------------------------------
 .../cassandra/db/compaction/CompactionManager.java |   37 ---------------
 1 files changed, 0 insertions(+), 37 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/220a828b/src/java/org/apache/cassandra/db/compaction/CompactionManager.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/compaction/CompactionManager.java b/src/java/org/apache/cassandra/db/compaction/CompactionManager.java
index 4b5ebbe..21bbb8e 100644
--- a/src/java/org/apache/cassandra/db/compaction/CompactionManager.java
+++ b/src/java/org/apache/cassandra/db/compaction/CompactionManager.java
@@ -864,43 +864,6 @@ public class CompactionManager implements CompactionManagerMBean
         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;


Mime
View raw message