From a2b2cad1a40c58766b52567ef27b7ef4a29e65d0 Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Fri, 31 May 2024 16:18:08 -0500 Subject: [PATCH] Remove dead method --- .../barrage/BarrageStreamGeneratorImpl.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageStreamGeneratorImpl.java b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageStreamGeneratorImpl.java index 3ce7d14fc9d..c370ada02c1 100644 --- a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageStreamGeneratorImpl.java +++ b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageStreamGeneratorImpl.java @@ -38,7 +38,6 @@ import io.deephaven.util.datastructures.SizeException; import io.deephaven.util.mutable.MutableInt; import io.deephaven.util.mutable.MutableLong; -import io.grpc.Drainable; import org.apache.arrow.flatbuf.Buffer; import org.apache.arrow.flatbuf.FieldNode; import org.apache.arrow.flatbuf.RecordBatch; @@ -47,7 +46,6 @@ import org.jetbrains.annotations.Nullable; import java.io.IOException; -import java.io.OutputStream; import java.nio.ByteBuffer; import java.util.*; import java.util.function.Consumer; @@ -1131,23 +1129,12 @@ protected int addToFlatBuffer(final RowSet viewport, final FlatBufferBuilder bui public static class BitSetGenerator extends ByteArrayGenerator { public final BitSet original; - public BitSetGenerator(final BitSet bitset) throws IOException { + public BitSetGenerator(final BitSet bitset) { this.original = bitset == null ? new BitSet() : bitset; this.raw = original.toByteArray(); final int nBits = original.previousSetBit(Integer.MAX_VALUE - 1) + 1; this.len = (int) ((long) nBits + 7) / 8; } - - public int addToFlatBuffer(final BitSet mine, final FlatBufferBuilder builder) throws IOException { - if (mine.equals(original)) { - return addToFlatBuffer(builder); - } - - final byte[] nraw = mine.toByteArray(); - final int nBits = mine.previousSetBit(Integer.MAX_VALUE - 1) + 1; - final int nlen = (int) ((long) nBits + 7) / 8; - return builder.createByteVector(nraw, 0, nlen); - } } public static class RowSetShiftDataGenerator extends ByteArrayGenerator {