Removing iter::TimesIx

This commit is contained in:
Mahmut Bulut 2012-10-28 22:36:01 +02:00
parent 5e5ea04608
commit ac92cc8898
2 changed files with 0 additions and 30 deletions

View File

@ -98,23 +98,6 @@ impl T: iter::Times {
}
}
impl T: iter::TimesIx {
#[inline(always)]
/// Like `times`, but provides an index
pure fn timesi(it: fn(uint) -> bool) {
let slf = self as uint;
if slf < 0u {
fail fmt!("The .timesi method expects a nonnegative number, \
but found %?", self);
}
let mut i = 0u;
while i < slf {
if !it(i) { break }
i += 1u;
}
}
}
/**
* Parse a buffer of bytes
*

View File

@ -88,19 +88,6 @@ impl T: iter::Times {
}
}
impl T: iter::TimesIx {
#[inline(always)]
/// Like `times`, but with an index, `eachi`-style.
pure fn timesi(it: fn(uint) -> bool) {
let slf = self as uint;
let mut i = 0u;
while i < slf {
if !it(i) { break }
i += 1u;
}
}
}
/**
* Parse a buffer of bytes
*