Skip to content

Commit 9e62681

Browse files
committed
Remove core::fmt::num::Decimal
Before ebf9e1a, it was used for Display::fmt, but ebf9e1a replaced that with a faster implementation, and nothing else uses it.
1 parent 55c984e commit 9e62681

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/libcore/fmt/num.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ struct Binary;
107107
#[derive(Clone, PartialEq)]
108108
struct Octal;
109109

110-
/// A decimal (base 10) radix
111-
#[derive(Clone, PartialEq)]
112-
struct Decimal;
113-
114110
/// A hexadecimal (base 16) radix, formatted with lower-case characters
115111
#[derive(Clone, PartialEq)]
116112
struct LowerHex;
@@ -136,7 +132,6 @@ macro_rules! radix {
136132

137133
radix! { Binary, 2, "0b", x @ 0 ... 1 => b'0' + x }
138134
radix! { Octal, 8, "0o", x @ 0 ... 7 => b'0' + x }
139-
radix! { Decimal, 10, "", x @ 0 ... 9 => b'0' + x }
140135
radix! { LowerHex, 16, "0x", x @ 0 ... 9 => b'0' + x,
141136
x @ 10 ... 15 => b'a' + (x - 10) }
142137
radix! { UpperHex, 16, "0x", x @ 0 ... 9 => b'0' + x,

0 commit comments

Comments
 (0)