From a05ed9936d97414efdfd460f1e25505c366689d3 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 10 Jun 2015 18:10:12 -0700 Subject: std: Remove two internal `str_internals` functions These were just exposed to be used elsewhere at some point, but neither is currently being used so just make them private again. --- src/libcore/str/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 13c6ad36725..7092df7b4c2 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -227,9 +227,8 @@ pub fn next_code_point(bytes: &mut slice::Iter) -> Option { /// Reads the last code point out of a byte iterator (assuming a /// UTF-8-like encoding). -#[unstable(feature = "str_internals")] #[inline] -pub fn next_code_point_reverse(bytes: &mut slice::Iter) -> Option { +fn next_code_point_reverse(bytes: &mut slice::Iter) -> Option { // Decode UTF-8 let w = match bytes.next_back() { None => return None, @@ -1873,8 +1872,7 @@ impl AsRef<[u8]> for str { /// Pluck a code point out of a UTF-8-like byte slice and return the /// index of the next code point. #[inline] -#[unstable(feature = "str_internals")] -pub fn char_range_at_raw(bytes: &[u8], i: usize) -> (u32, usize) { +fn char_range_at_raw(bytes: &[u8], i: usize) -> (u32, usize) { if bytes[i] < 128 { return (bytes[i] as u32, i + 1); } -- cgit 1.4.1-3-g733a5