From e4337a9defcad3f2a65da285ab78f8ede554f379 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 24 Jan 2013 23:24:57 -0500 Subject: remove remaining is_not_empty functions/methods --- src/libstd/list.rs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/libstd') 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(ls: @List) -> bool { } } -/// Returns true if the list is not empty -pub pure fn is_not_empty(ls: @List) -> bool { - return !is_empty(ls); -} - /// Returns the length of a list pub pure fn len(ls: @List) -> 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] -- cgit 1.4.1-3-g733a5