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.
This commit is contained in:
parent
77dff93a4b
commit
5f69a58e0c
2 changed files with 2 additions and 7 deletions
|
@ -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<T, U>(xs: &[T], ys: &[U]) -> bool {
|
||||
xs.len() == ys.len()
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates and initializes an owned vector.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue