mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove unused zip_copies.
This commit is contained in:
parent
479c927a39
commit
87008a5ae1
2 changed files with 0 additions and 7 deletions
|
@ -4290,7 +4290,6 @@ class CGBindingRoot(CGThing):
|
|||
'script_task::JSPageInfo',
|
||||
'libc',
|
||||
'servo_util::str::DOMString',
|
||||
'servo_util::vec::zip_copies',
|
||||
'std::cast',
|
||||
'std::cmp',
|
||||
'std::ptr',
|
||||
|
|
|
@ -67,12 +67,6 @@ fn test_match<T: Eq>(b: &T, a: Option<&T>) -> bool {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn zip_copies<A: Clone, B: Clone>(avec: &[A], bvec: &[B]) -> ~[(A,B)] {
|
||||
avec.iter().map(|x| x.clone())
|
||||
.zip(bvec.iter().map(|x| x.clone()))
|
||||
.collect()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn should_find_all_elements() {
|
||||
let arr_odd = [1, 2, 4, 6, 7, 8, 9];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue