about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2017-05-12 08:21:00 +0200
committerest31 <MTest31@outlook.com>2017-05-12 09:37:28 +0200
commit80891f6e4725efc72c27e4f224123ec292fdd7d4 (patch)
tree4debab43e1544d893a5757551449f24a0acbe8e9 /src/libcollections
parent39bcd6f425426bfacd7de9fe0378df4bd9263d00 (diff)
downloadrust-80891f6e4725efc72c27e4f224123ec292fdd7d4.tar.gz
rust-80891f6e4725efc72c27e4f224123ec292fdd7d4.zip
Remove some unused macros from the rust codebase
Removes unused macros from:
  * libcore
  * libcollections
    The last use of these two macros was removed in commit
    b64c9d56700e2c41207166fe8709711ff02488ff
    when the char_range_at_reverse function was been removed.
  * librustc_errors
    Their last use was removed by commits
    2f2c3e178325dc1837badcd7573c2c0905fab979
    and 11dc974a38fd533aa692cea213305056cd3a6902.
  * libsyntax_ext
  * librustc_trans
    Also, put the otry macro in back/msvc/mod.rs under the
    same cfg argument as the places that use it.
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/str.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs
index 964660183e7..5f4578bbeb3 100644
--- a/src/libcollections/str.rs
+++ b/src/libcollections/str.rs
@@ -176,18 +176,6 @@ impl<'a> Iterator for EncodeUtf16<'a> {
 #[unstable(feature = "fused", issue = "35602")]
 impl<'a> FusedIterator for EncodeUtf16<'a> {}
 
-// Return the initial codepoint accumulator for the first byte.
-// The first byte is special, only want bottom 5 bits for width 2, 4 bits
-// for width 3, and 3 bits for width 4
-macro_rules! utf8_first_byte {
-    ($byte:expr, $width:expr) => (($byte & (0x7F >> $width)) as u32)
-}
-
-// return the value of $ch updated with continuation byte $byte
-macro_rules! utf8_acc_cont_byte {
-    ($ch:expr, $byte:expr) => (($ch << 6) | ($byte & 63) as u32)
-}
-
 #[stable(feature = "rust1", since = "1.0.0")]
 impl Borrow<str> for String {
     #[inline]