about summary refs log tree commit diff
path: root/src/libstd/option.rs
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-08-04 16:30:51 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-08-07 08:52:09 -0700
commit19e17f54a02e484f1ab4fd809caa0aaf3f3d14bc (patch)
treea8849f904f46e56f8ad718ab2e5c56947872e05c /src/libstd/option.rs
parent1e490813b017f99cb4385fe846d645efe5d62b62 (diff)
std: removed option.take_map{,_default}
Diffstat (limited to 'src/libstd/option.rs')
-rw-r--r--src/libstd/option.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/libstd/option.rs b/src/libstd/option.rs
index e43ff65da5e..66b30d8dd03 100644
--- a/src/libstd/option.rs
+++ b/src/libstd/option.rs
@@ -241,20 +241,6 @@ impl<T> Option<T> {
         util::replace(self, None)
     }
 
-    /// As `map_move`, but swaps a None into the original option rather
-    /// than consuming it by-value.
-    #[inline]
-    pub fn take_map<U>(&mut self, blk: &fn(T) -> U) -> Option<U> {
-        self.take().map_move(blk)
-    }
-
-    /// As `map_move_default`, but swaps a None into the original option
-    /// rather than consuming it by-value.
-    #[inline]
-    pub fn take_map_default<U> (&mut self, def: U, blk: &fn(T) -> U) -> U {
-        self.take().map_move_default(def, blk)
-    }
-
     /// Apply a function to the contained value or do nothing.
     /// Returns true if the contained value was mutated.
     pub fn mutate(&mut self, f: &fn(T) -> T) -> bool {