about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-03-23 09:27:21 -0500
committerAlex Crichton <alex@alexcrichton.com>2018-03-23 10:16:09 -0700
commitdb2dde9a41aeba6ab0886ebc09c2918b95dd9ddb (patch)
treea90927f6d33b0b2be779b6dabf935e6a39873170
parent4b31b5bda75ee7be63aa5aa146d75bbacb3faa4b (diff)
parent9e6268191205c42bc7958d949fa48811d60857f9 (diff)
downloadrust-db2dde9a41aeba6ab0886ebc09c2918b95dd9ddb.tar.gz
rust-db2dde9a41aeba6ab0886ebc09c2918b95dd9ddb.zip
Rollup merge of #49102 - glandium:decimal, r=aturon
Remove core::fmt::num::Decimal

Before ebf9e1aaf6, it was used for Display::fmt, but ebf9e1aaf6 replaced
that with a faster implementation, and nothing else uses it.
-rw-r--r--src/libcore/fmt/num.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libcore/fmt/num.rs b/src/libcore/fmt/num.rs
index fcf06ea319d..427765aed20 100644
--- a/src/libcore/fmt/num.rs
+++ b/src/libcore/fmt/num.rs
@@ -105,10 +105,6 @@ struct Binary;
 #[derive(Clone, PartialEq)]
 struct Octal;
 
-/// A decimal (base 10) radix
-#[derive(Clone, PartialEq)]
-struct Decimal;
-
 /// A hexadecimal (base 16) radix, formatted with lower-case characters
 #[derive(Clone, PartialEq)]
 struct LowerHex;
@@ -134,7 +130,6 @@ macro_rules! radix {
 
 radix! { Binary,    2, "0b", x @  0 ...  1 => b'0' + x }
 radix! { Octal,     8, "0o", x @  0 ...  7 => b'0' + x }
-radix! { Decimal,  10, "",   x @  0 ...  9 => b'0' + x }
 radix! { LowerHex, 16, "0x", x @  0 ...  9 => b'0' + x,
                              x @ 10 ... 15 => b'a' + (x - 10) }
 radix! { UpperHex, 16, "0x", x @  0 ...  9 => b'0' + x,