std: remove str::to_chars

This commit is contained in:
Huon Wilson
2013-06-11 00:49:19 +10:00
parent 8c59d920a1
commit ebefe425b9
3 changed files with 6 additions and 10 deletions

View File

@@ -432,11 +432,6 @@ pub fn byte_slice_no_callback<'a>(s: &'a str) -> &'a [u8] {
}
}
/// Convert a string to a unique vector of characters
pub fn to_chars(s: &str) -> ~[char] {
s.iter().collect()
}
/**
* Take a substring of another.
*