Repository: cassandra Updated Branches: refs/heads/trunk 64e39a039 -> 02367e78b
remove dead code Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/02367e78 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/02367e78 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/02367e78 Branch: refs/heads/trunk Commit: 02367e78b573925a864ab8f94ba0a69950ca74f5 Parents: 64e39a0 Author: Dave Brosius <[email protected]> Authored: Tue Jan 27 20:35:18 2015 -0500 Committer: Dave Brosius <[email protected]> Committed: Tue Jan 27 20:36:45 2015 -0500 ---------------------------------------------------------------------- test/unit/org/apache/cassandra/Util.java | 37 --------------------------- 1 file changed, 37 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/02367e78/test/unit/org/apache/cassandra/Util.java ---------------------------------------------------------------------- diff --git a/test/unit/org/apache/cassandra/Util.java b/test/unit/org/apache/cassandra/Util.java index cdb7ac6..24e334a 100644 --- a/test/unit/org/apache/cassandra/Util.java +++ b/test/unit/org/apache/cassandra/Util.java @@ -211,27 +211,6 @@ public class Util return cfStore.getColumnFamily(QueryFilter.getIdentityFilter(key, cfName, System.currentTimeMillis())); } - public static byte[] concatByteArrays(byte[] first, byte[]... remaining) - { - int length = first.length; - for (byte[] array : remaining) - { - length += array.length; - } - - byte[] result = new byte[length]; - System.arraycopy(first, 0, result, 0, first.length); - int offset = first.length; - - for (byte[] array : remaining) - { - System.arraycopy(array, 0, result, offset, array.length); - offset += array.length; - } - - return result; - } - public static boolean equalsCounterId(CounterId n, ByteBuffer context, int offset) { return CounterId.wrap(context, context.position() + offset).equals(n); @@ -313,22 +292,6 @@ public class Util assert thrown : exception.getName() + " not received"; } - public static ByteBuffer serializeForSSTable(ColumnFamily cf) - { - try - { - DataOutputBuffer out = new DataOutputBuffer(); - DeletionTime.serializer.serialize(cf.deletionInfo().getTopLevelDeletion(), out); - out.writeInt(cf.getColumnCount()); - new ColumnIndex.Builder(cf, ByteBufferUtil.EMPTY_BYTE_BUFFER, out).build(cf); - return ByteBuffer.wrap(out.toByteArray()); - } - catch (IOException e) - { - throw new RuntimeException(e); - } - } - public static QueryFilter namesQueryFilter(ColumnFamilyStore cfs, DecoratedKey key) { SortedSet<CellName> s = new TreeSet<CellName>(cfs.getComparator());
