diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/list.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libstd/list.rs b/src/libstd/list.rs index 2d9c96b28a9..0aee29932c5 100644 --- a/src/libstd/list.rs +++ b/src/libstd/list.rs @@ -83,11 +83,6 @@ pub pure fn is_empty<T: Copy>(ls: @List<T>) -> bool { } } -/// Returns true if the list is not empty -pub pure fn is_not_empty<T: Copy>(ls: @List<T>) -> bool { - return !is_empty(ls); -} - /// Returns the length of a list pub pure fn len<T>(ls: @List<T>) -> uint { let mut count = 0u; @@ -177,10 +172,6 @@ mod tests { assert is_empty(empty); assert !is_empty(full1); assert !is_empty(full2); - - assert !is_not_empty(empty); - assert is_not_empty(full1); - assert is_not_empty(full2); } #[test] |
