about summary refs log tree commit diff
path: root/src/libcore/old_iter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/old_iter.rs')
-rw-r--r--src/libcore/old_iter.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libcore/old_iter.rs b/src/libcore/old_iter.rs
index 7cffcb10a53..12b7ce1eb6e 100644
--- a/src/libcore/old_iter.rs
+++ b/src/libcore/old_iter.rs
@@ -239,26 +239,6 @@ pub fn position<A,IA:BaseIter<A>>(this: &IA, f: &fn(&A) -> bool)
 // it would have to be implemented with foldr, which is too inefficient.
 
 #[inline(always)]
-#[cfg(stage0)]
-pub fn repeat(times: uint, blk: &fn() -> bool) {
-    let mut i = 0;
-    while i < times {
-        if !blk() { break }
-        i += 1;
-    }
-}
-#[inline(always)]
-#[cfg(not(stage0))]
-pub fn repeat(times: uint, blk: &fn() -> bool) -> bool {
-    let mut i = 0;
-    while i < times {
-        if !blk() { return false; }
-        i += 1;
-    }
-    return true;
-}
-
-#[inline(always)]
 pub fn min<A:Copy + Ord,IA:BaseIter<A>>(this: &IA) -> A {
     match do foldl::<A,Option<A>,IA>(this, None) |a, b| {
         match a {