diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2014-03-28 20:42:34 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2014-03-30 03:47:04 +0200 |
| commit | c356e3ba6a12c3294a9a428ef9120cff9306bf4b (patch) | |
| tree | d5f8701b97fcf2fc596a52215ad96462c1eb981e /src/libstd/vec.rs | |
| parent | 86890b9e7c5db28ac2da5cd63d1a51d63a5e6bec (diff) | |
| download | rust-c356e3ba6a12c3294a9a428ef9120cff9306bf4b.tar.gz rust-c356e3ba6a12c3294a9a428ef9120cff9306bf4b.zip | |
Removed deprecated functions `map` and `flat_map` for vectors and slices.
Diffstat (limited to 'src/libstd/vec.rs')
| -rw-r--r-- | src/libstd/vec.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs index 4454801c129..11fd2b8ee22 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -902,13 +902,6 @@ impl<T> Vec<T> { } } - ///Apply a function to each element of a vector and return the results. - #[inline] - #[deprecated="Use `xs.iter().map(closure)` instead."] - pub fn map<U>(&self, f: |t: &T| -> U) -> Vec<U> { - self.iter().map(f).collect() - } - /// Takes ownership of the vector `other`, moving all elements into /// the current vector. This does not copy any elements, and it is /// illegal to use the `other` vector after calling this method |
