diff --git a/src/libcore/iter-trait/option.rs b/src/libcore/iter-trait/option.rs deleted file mode 100644 index 986dbf7f3d186..0000000000000 --- a/src/libcore/iter-trait/option.rs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2012 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -mod inst { - use option::{None, Option, Some}; - - #[allow(non_camel_case_types)] - pub type IMPL_T = Option; - - #[inline(always)] - pub pure fn EACH(self: &IMPL_T, f: fn(v: &A) -> bool) { - match *self { - None => (), - Some(ref a) => { f(a); } - } - } - - #[inline(always)] - pub pure fn SIZE_HINT(self: &IMPL_T) -> Option { - match *self { - None => Some(0), - Some(_) => Some(1) - } - } -}