diff options
| author | bors <bors@rust-lang.org> | 2013-05-20 02:46:36 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-20 02:46:36 -0700 |
| commit | 2e6cda254a2acdcd60efb62a27f69c7702b8f71e (patch) | |
| tree | ba2b843a8a0cd261cf94b4e6ab017d0918841f3c /src/libsyntax/opt_vec.rs | |
| parent | ab46a38039c320bd2011160fdd8a86828172d29e (diff) | |
| parent | 66319b027888ceddf024a5919e007caceaf369f3 (diff) | |
| download | rust-2e6cda254a2acdcd60efb62a27f69c7702b8f71e.tar.gz rust-2e6cda254a2acdcd60efb62a27f69c7702b8f71e.zip | |
auto merge of #6635 : brson/rust/snapshot, r=brson
Diffstat (limited to 'src/libsyntax/opt_vec.rs')
| -rw-r--r-- | src/libsyntax/opt_vec.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/libsyntax/opt_vec.rs b/src/libsyntax/opt_vec.rs index 288e80f6101..e3f1e9e1328 100644 --- a/src/libsyntax/opt_vec.rs +++ b/src/libsyntax/opt_vec.rs @@ -130,14 +130,6 @@ impl<A:Eq> Eq for OptVec<A> { } impl<A> BaseIter<A> for OptVec<A> { - #[cfg(stage0)] - fn each(&self, blk: &fn(v: &A) -> bool) { - match *self { - Empty => {} - Vec(ref v) => v.each(blk) - } - } - #[cfg(not(stage0))] fn each(&self, blk: &fn(v: &A) -> bool) -> bool { match *self { Empty => true, @@ -152,12 +144,6 @@ impl<A> BaseIter<A> for OptVec<A> { impl<A> old_iter::ExtendedIter<A> for OptVec<A> { #[inline(always)] - #[cfg(stage0)] - fn eachi(&self, blk: &fn(v: uint, v: &A) -> bool) { - old_iter::eachi(self, blk) - } - #[inline(always)] - #[cfg(not(stage0))] fn eachi(&self, blk: &fn(v: uint, v: &A) -> bool) -> bool { old_iter::eachi(self, blk) } |
