Skip to content

Commit

Permalink
Remove copy()
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 13, 2023
1 parent 5a4f738 commit e109c1a
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions arrow-data/src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit e109c1a

Please sign in to comment.