From 4820619fc0bbed0a46fb591547fd511ae946f4f2 Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies Date: Thu, 27 Oct 2022 13:36:54 +1300 Subject: [PATCH] Remove NativeDecimalType --- arrow-array/src/types.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arrow-array/src/types.rs b/arrow-array/src/types.rs index 70c43a2a494..edf6d40f3ae 100644 --- a/arrow-array/src/types.rs +++ b/arrow-array/src/types.rs @@ -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 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 ///