remove commentted codes
@@ -185,77 +185,6 @@ pub struct NumberDomain<T: Number> {
pub max: T::Storage,
}
-// #[derive(Debug, Copy, Clone, PartialEq, Eq)]
-// pub enum IntegerType {
-// u8(u8),
-// u16(u16),
-// u32(u32),
-// u64(u64),
-// i8(i8),
-// i16(i16),
-// i32(i32),
-// i64(i64),
-// }
-//
-// macro_rules! int_trait_impl {
-// ($name:ident for $($t:ty)*) => ($(
-// impl $name for IntegerType::$t {
-//
-// type Storage = $t;
-// type OrderedStorage = $t;
-//
-// const MIN: Self::Storage = $t::MIN;
-// const MAX: Self::Storage = $t::MAX;
-//
-// let type_str = stringify!($t);
-// let type_len = type_str.len();
-// // i8 -> int8, u32 -> uint32, ...
-// let integer_letter = if type_str.chars().nth(0).unwrap() == 'i' {
-// let mut s = String::with_capacity(type_len+2);
-// s.insert_str(0, "int"),
-// s.insert_str(3, &type_str[1..])
-// s
-// } else {
-// let mut s = String::with_capacity(type_len+3);
-// s.insert_str(0, "uint");
-// s.insert_str(4, &type_str[1..])
-// s
-// }
-//
-// let
-//
-// fn data_type() -> DataType {
-// DataType::Int64
-// }
-//
-// fn try_downcast_scalar(scalar: &ScalarRef) -> Option<Self::Storage> {
-// scalar.as_int64().cloned()
-// }
-//
-// fn try_downcast_column(col: &Column) -> Option<Buffer<Self::Storage>> {
-// col.as_int64().cloned()
-// }
-//
-// fn try_downcast_domain(domain: &Domain) -> Option<NumberDomain<Self>> {
-// domain.as_int64().cloned()
-// }
-//
-// fn upcast_scalar(scalar: Self::Storage) -> Scalar {
-// Scalar::Int64(scalar)
-// }
-//
-// fn upcast_column(col: Buffer<Self::Storage>) -> Column {
-// Column::Int64(col)
-// }
-//
-// fn upcast_domain(domain: NumberDomain<Self>) -> Domain {
-// Domain::Int64(domain)
-// }
-// }
-// )*)
-// }
-// int_trait_impl!(Number for usize u8 u16 u32 u64 isize i8 i16 i32 i64);
-
impl Number for u8 {
type Storage = u8;
type OrderedStorage = u8;
