diff --git a/arrow-data/src/ffi.rs b/arrow-data/src/ffi.rs index 58168d806144..67c711e6abad 100644 --- a/arrow-data/src/ffi.rs +++ b/arrow-data/src/ffi.rs @@ -286,27 +286,6 @@ impl FFI_ArrowArray { // If dictionary is not null should be valid for reads of `Self` unsafe { self.dictionary.as_ref() } } - - /// Create a copy of an existing `FFI_ArrowArray` - /// - /// As required by the C Data Interface specification, this sets the `release` member of `Self` - /// to `None`, but without calling the release callback. - pub fn copy(&mut self) -> Self { - let new = Self { - length: self.length, - null_count: self.null_count, - offset: self.offset, - n_buffers: self.n_buffers, - n_children: self.n_children, - buffers: self.buffers, - children: self.children, - dictionary: self.dictionary, - release: self.release, - private_data: self.private_data, - }; - self.release = None; - new - } } #[cfg(test)]