File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
branches/snap-stage3/src/libstd Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 124eb2119c78651cfaaa7a046a101fa2e20f83ca
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 422dcbd56d1a1888f1491d8fb14bb87a54fadbc7
4
+ refs/heads/snap-stage3: 6f176a17f630a82acd9f4163efc0384d02717d77
5
5
refs/heads/try: ac820906c0e53eab79a98ee64f7231f57c3887b4
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -1370,8 +1370,6 @@ pub trait StrSlice<'self> {
1370
1370
1371
1371
fn slice_shift_char(&self) -> (char, &'self str);
1372
1372
1373
- fn map_chars(&self, ff: &fn(char) -> char) -> ~str;
1374
-
1375
1373
fn lev_distance(&self, t: &str) -> uint;
1376
1374
1377
1375
fn subslice_offset(&self, inner: &str) -> uint;
@@ -2088,15 +2086,6 @@ impl<'self> StrSlice<'self> for &'self str {
2088
2086
return (ch, next_s);
2089
2087
}
2090
2088
2091
- /// Apply a function to each character.
2092
- fn map_chars(&self, ff: &fn(char) -> char) -> ~str {
2093
- let mut result = with_capacity(self.len());
2094
- for cc in self.iter() {
2095
- result.push_char(ff(cc));
2096
- }
2097
- result
2098
- }
2099
-
2100
2089
/// Levenshtein Distance between two strings.
2101
2090
fn lev_distance(&self, t: &str) -> uint {
2102
2091
let slen = self.len();
You can’t perform that action at this time.
0 commit comments