cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject git commit: r/m unused EmptyCompactionScanner
Date Sat, 30 Mar 2013 14:29:31 GMT
Updated Branches:
  refs/heads/trunk 8de7651b3 -> 9f8526fef


r/m unused EmptyCompactionScanner


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

Branch: refs/heads/trunk
Commit: 9f8526fefe6def2a10accbe8e9b514884192b6c1
Parents: 8de7651
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Sat Mar 30 09:29:22 2013 -0500
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Sat Mar 30 09:29:22 2013 -0500

----------------------------------------------------------------------
 .../apache/cassandra/io/sstable/SSTableReader.java |   44 ---------------
 1 files changed, 0 insertions(+), 44 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/9f8526fe/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/sstable/SSTableReader.java b/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
index 23d24fb..e73bd67 100644
--- a/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
+++ b/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
@@ -1253,50 +1253,6 @@ public class SSTableReader extends SSTable
         }
     }
 
-    private static class EmptyCompactionScanner implements ICompactionScanner
-    {
-        private final String filename;
-
-        private EmptyCompactionScanner(String filename)
-        {
-            this.filename = filename;
-        }
-
-        public long getLengthInBytes()
-        {
-            return 0;
-        }
-
-        public long getCurrentPosition()
-        {
-            return 0;
-        }
-
-        public String getBackingFiles()
-        {
-            return filename;
-        }
-
-        public void close()
-        {
-        }
-
-        public boolean hasNext()
-        {
-            return false;
-        }
-
-        public OnDiskAtomIterator next()
-        {
-            throw new IndexOutOfBoundsException();
-        }
-
-        public void remove()
-        {
-            throw new UnsupportedOperationException();
-        }
-    }
-
     private void dropPageCache()
     {
         dropPageCache(dfile.path);


Mime
View raw message