From 46bf41bf936eb34d1353f68cb1a80d67d19a9567 Mon Sep 17 00:00:00 2001 From: Curt Hagenlocher Date: Sat, 14 Sep 2024 06:43:50 -0700 Subject: [PATCH] Revert unneeded changes --- csharp/src/Apache.Arrow/C/CArrowArrayImporter.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/csharp/src/Apache.Arrow/C/CArrowArrayImporter.cs b/csharp/src/Apache.Arrow/C/CArrowArrayImporter.cs index bac2113f535ca..c454380e17cfc 100644 --- a/csharp/src/Apache.Arrow/C/CArrowArrayImporter.cs +++ b/csharp/src/Apache.Arrow/C/CArrowArrayImporter.cs @@ -148,11 +148,6 @@ public RecordBatch GetAsRecordBatch(Schema schema) } private ArrayData GetAsArrayData(CArrowArray* cArray, IArrowType type) - { - return GetAsArrayData(cArray, type, checked((int)cArray->offset), checked((int)cArray->length)); - } - - private ArrayData GetAsArrayData(CArrowArray* cArray, IArrowType type, int offset, int length) { ArrayData[] children = null; ArrowBuffer[] buffers = null; @@ -244,7 +239,7 @@ private ArrayData[] ProcessListChildren(CArrowArray* cArray, IArrowType type) } ArrayData[] children = new ArrayData[1]; - children[0] = GetAsArrayData(cArray->children[0], type, checked((int)cArray->offset), checked((int)cArray->length)); + children[0] = GetAsArrayData(cArray->children[0], type); return children; }