Browse Source

removed exists.

Nicolas Cannasse 18 years ago
parent
commit
f3c78cc24e
1 changed files with 0 additions and 23 deletions
  1. 0 23
      std/List.hx

+ 0 - 23
std/List.hx

@@ -239,27 +239,4 @@ class List<T> {
 		return b;
 		return b;
 	}
 	}
 
 
-	/**
-		Tells if an element is in the list, the elements will
-		be tested using normal equality. A comparison method can be passed
-		instead of an element to perform a specific comparison.
-	**/
-	public function exists( ?elt : T, ?cmp : T -> Bool ) : Bool {
-		var l = h;
-		if( cmp != null ) {
-			while( l != null ) {
-				if( cmp(l[0]) )
-					return true;
-				l = l[1];
-			}
-			return false;
-		}
-		while( l != null ) {
-			if( elt == l[0] )
-				return true;
-			l = l[1];
-		}
-		return false;
-	}
-
 }
 }