cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1081866 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java
Date Tue, 15 Mar 2011 17:21:21 GMT
Author: jbellis
Date: Tue Mar 15 17:21:20 2011
New Revision: 1081866

URL: http://svn.apache.org/viewvc?rev=1081866&view=rev
Log:
r/m unused code

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java?rev=1081866&r1=1081865&r2=1081866&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java
(original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/tools/SSTableExport.java
Tue Mar 15 17:21:20 2011
@@ -97,21 +97,16 @@ public class SSTableExport
      * @param out output stream
      * @return pair of (number of columns serialized, last column serialized)
      */
-    private static Pair<Integer, ByteBuffer> serializeColumns(Iterator<IColumn>
columns, PrintStream out)
+    private static void serializeColumns(Iterator<IColumn> columns, PrintStream out)
     {
-        int n = 0;
-        IColumn column = null;
         while (columns.hasNext())
         {
-            column = columns.next();
-            n++;
+            IColumn column = columns.next();
             serializeColumn(column, out);
 
             if (columns.hasNext())
                 out.print(", ");
         }
-
-        return new Pair<Integer, ByteBuffer>(n, column == null ? null : column.name());
     }
 
     /**



Mime
View raw message