about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-01-24 23:24:57 -0500
committerDaniel Micay <danielmicay@gmail.com>2013-01-24 23:24:57 -0500
commite4337a9defcad3f2a65da285ab78f8ede554f379 (patch)
tree21d2bff727548efa00e3cf7225ab9e43a9d5a2c7 /src/libstd
parentec3f6e1932db297d2a575e591d4c508d785a0a52 (diff)
downloadrust-e4337a9defcad3f2a65da285ab78f8ede554f379.tar.gz
rust-e4337a9defcad3f2a65da285ab78f8ede554f379.zip
remove remaining is_not_empty functions/methods
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/list.rs9
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]