Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Unused NativeDecimalType #2945

Merged
merged 1 commit into from Oct 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 0 additions & 11 deletions arrow-array/src/types.rs
Expand Up @@ -472,17 +472,6 @@ mod private {
impl DecimalTypeSealed for Decimal256Type {}
}

/// Trait representing the in-memory layout of a decimal type
pub trait NativeDecimalType: Send + Sync + Copy + AsRef<[u8]> {
fn from_slice(slice: &[u8]) -> Self;
}

impl<const N: usize> NativeDecimalType for [u8; N] {
fn from_slice(slice: &[u8]) -> Self {
slice.try_into().unwrap()
}
}

/// A trait over the decimal types, used by [`DecimalArray`] to provide a generic
/// implementation across the various decimal types
///
Expand Down