From 5f69a58e0ccf3d85b5f12f26ecf78ee7e7fec270 Mon Sep 17 00:00:00 2001 From: blake2-ppc Date: Tue, 10 Sep 2013 03:55:34 +0200 Subject: std::vec: Remove the function same_length The basic construct x.len() == y.len() is just as simple. This function used to be a precondition (not sure about the terminology), so it had to be a function. This is not relevant any more. --- src/libstd/vec.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs index b55a236566b..27566bf23c8 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -123,11 +123,6 @@ use unstable::raw::{Box, Repr, Slice, Vec}; use vec; use util; -/// Returns true if two vectors have the same length -pub fn same_length(xs: &[T], ys: &[U]) -> bool { - xs.len() == ys.len() -} - /** * Creates and initializes an owned vector. * -- cgit 1.4.1-3-g733a5