Skip to content

Commit

Permalink
Remove dead codes in core
Browse files Browse the repository at this point in the history
  • Loading branch information
mu001999 authored Dec 12, 2023
1 parent ff2c563 commit 4d38e8a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions library/core/src/fmt/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ trait DisplayInt:
fn zero() -> Self;
fn from_u8(u: u8) -> Self;
fn to_u8(&self) -> u8;
fn to_u16(&self) -> u16;
fn to_u32(&self) -> u32;
fn to_u64(&self) -> u64;
fn to_u128(&self) -> u128;
}
Expand All @@ -27,8 +25,6 @@ macro_rules! impl_int {
fn zero() -> Self { 0 }
fn from_u8(u: u8) -> Self { u as Self }
fn to_u8(&self) -> u8 { *self as u8 }
fn to_u16(&self) -> u16 { *self as u16 }
fn to_u32(&self) -> u32 { *self as u32 }
fn to_u64(&self) -> u64 { *self as u64 }
fn to_u128(&self) -> u128 { *self as u128 }
})*
Expand All @@ -40,8 +36,6 @@ macro_rules! impl_uint {
fn zero() -> Self { 0 }
fn from_u8(u: u8) -> Self { u as Self }
fn to_u8(&self) -> u8 { *self as u8 }
fn to_u16(&self) -> u16 { *self as u16 }
fn to_u32(&self) -> u32 { *self as u32 }
fn to_u64(&self) -> u64 { *self as u64 }
fn to_u128(&self) -> u128 { *self as u128 }
})*
Expand Down

0 comments on commit 4d38e8a

Please sign in to comment.