rm ExtendedMutableIter

replaced with `xs.mut_iter().enumerate()`
This commit is contained in:
Daniel Micay 2013-06-12 21:47:04 -04:00
parent 585f5f7f79
commit 8111701604
4 changed files with 0 additions and 13 deletions

View file

@ -47,10 +47,6 @@ pub trait ExtendedIter<A> {
fn flat_map_to_vec<B,IB: BaseIter<B>>(&self, op: &fn(&A) -> IB) -> ~[B];
}
pub trait ExtendedMutableIter<A> {
fn eachi_mut(&mut self, blk: &fn(uint, &mut A) -> bool) -> bool;
}
pub trait EqIter<A:Eq> {
fn contains(&self, x: &A) -> bool;
fn count(&self, x: &A) -> uint;

View file

@ -48,7 +48,6 @@ pub use container::{Container, Mutable, Map, Set};
pub use hash::Hash;
pub use old_iter::{BaseIter, ReverseIter, MutableIter, ExtendedIter, EqIter};
pub use old_iter::{CopyableIter, CopyableOrderedIter, CopyableNonstrictIter};
pub use old_iter::{ExtendedMutableIter};
pub use iter::{Times, FromIter};
pub use iterator::{Iterator, IteratorUtil};
pub use num::{Num, NumCast};

View file

@ -2535,13 +2535,6 @@ impl<'self,A> old_iter::ExtendedIter<A> for &'self [A] {
}
}
impl<'self,A> old_iter::ExtendedMutableIter<A> for &'self mut [A] {
#[inline(always)]
pub fn eachi_mut(&mut self, blk: &fn(uint, v: &mut A) -> bool) -> bool {
self.mut_iter().enumerate().advance(|(i, v)| blk(i, v))
}
}
// FIXME(#4148): This should be redundant
impl<A> old_iter::ExtendedIter<A> for ~[A] {
pub fn eachi(&self, blk: &fn(uint, v: &A) -> bool) -> bool {

View file

@ -1,6 +1,5 @@
use std::f64;
use std::from_str::FromStr;
use std::iter::ExtendedMutableIter;
use std::os;
use std::vec;