Skip to content

Commit

Permalink
Removing iter::TimesIx
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexclique committed Oct 28, 2012
1 parent 5e5ea04 commit ac92cc8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
17 changes: 0 additions & 17 deletions src/libcore/int-template.rs
Expand Up @@ -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
*
Expand Down
13 changes: 0 additions & 13 deletions src/libcore/uint-template.rs
Expand Up @@ -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
*
Expand Down

0 comments on commit ac92cc8

Please sign in to comment.