about summary refs log tree commit diff
path: root/src/libcore/iter-trait/optionb.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/iter-trait/optionb.rs')
-rw-r--r--src/libcore/iter-trait/optionb.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/libcore/iter-trait/optionb.rs b/src/libcore/iter-trait/optionb.rs
deleted file mode 100644
index 680893eb95b..00000000000
--- a/src/libcore/iter-trait/optionb.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-mod inst {
-    #[allow(non_camel_case_types)]
-    pub type IMPL_T<A> = Option<A>;
-
-    pub pure fn EACH<A>(self: &IMPL_T<A>, f: fn(v: &A) -> bool) {
-        match *self {
-            None => (),
-            Some(ref a) => { f(a); }
-        }
-    }
-
-    pub pure fn SIZE_HINT<A>(self: &IMPL_T<A>) -> Option<uint> {
-        match *self {
-            None => Some(0),
-            Some(_) => Some(1)
-        }
-    }
-}
\ No newline at end of file