From c48353ff7e72d5a63efb59c8fa89d8ae129b6d99 Mon Sep 17 00:00:00 2001 From: Vibhatha Abeykoon Date: Thu, 6 Jun 2024 13:48:10 +0530 Subject: [PATCH] fix: remove redundant functions --- .../testing/ValueVectorDataPopulator.java | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/java/vector/src/test/java/org/apache/arrow/vector/testing/ValueVectorDataPopulator.java b/java/vector/src/test/java/org/apache/arrow/vector/testing/ValueVectorDataPopulator.java index 7f6ddd2fe9458..45e6e630792a9 100644 --- a/java/vector/src/test/java/org/apache/arrow/vector/testing/ValueVectorDataPopulator.java +++ b/java/vector/src/test/java/org/apache/arrow/vector/testing/ValueVectorDataPopulator.java @@ -62,7 +62,6 @@ import org.apache.arrow.vector.VarBinaryVector; import org.apache.arrow.vector.VarCharVector; import org.apache.arrow.vector.VariableWidthFieldVector; -import org.apache.arrow.vector.ViewVarCharVector; import org.apache.arrow.vector.complex.BaseRepeatedValueVector; import org.apache.arrow.vector.complex.FixedSizeListVector; import org.apache.arrow.vector.complex.LargeListVector; @@ -588,20 +587,6 @@ public static void setVector(VarCharVector vector, byte[]... values) { vector.setValueCount(length); } - /** - * Populate values for ViewVarCharVector. - */ - public static void setVector(ViewVarCharVector vector, byte[]... values) { - final int length = values.length; - vector.allocateNewSafe(); - for (int i = 0; i < length; i++) { - if (values[i] != null) { - vector.set(i, values[i]); - } - } - vector.setValueCount(length); - } - public static void setVector(VariableWidthFieldVector vector, byte[]... values) { final int length = values.length; vector.allocateNewSafe(); @@ -641,20 +626,6 @@ public static void setVector(VarCharVector vector, String... values) { vector.setValueCount(length); } - /** - * Populate values for ViewVarCharVector. - */ - public static void setVector(ViewVarCharVector vector, String... values) { - final int length = values.length; - vector.allocateNewSafe(); - for (int i = 0; i < length; i++) { - if (values[i] != null) { - vector.setSafe(i, values[i].getBytes(StandardCharsets.UTF_8)); - } - } - vector.setValueCount(length); - } - /** * Populate values for LargeVarCharVector. */