Browse Source

removed Array.indexes.

Nicolas Cannasse 19 years ago
parent
commit
7cffe48c0a
5 changed files with 1 additions and 38 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 0 1
      std/Array.hx
  3. 0 12
      std/flash/Boot.hx
  4. 0 12
      std/js/Boot.hx
  5. 0 13
      std/neko/NekoArray__.hx

+ 1 - 0
doc/CHANGES.txt

@@ -13,6 +13,7 @@
 	added haxe.Template
 	moved Log , PosInfos and ImportAll to haxe package
 	completed private class/interface/enum support
+	removed Array.indexes
 
 2006-04-17: beta 5
 	fixed bug : continue in do...while

+ 0 - 1
std/Array.hx

@@ -81,6 +81,5 @@ extern class Array<T> {
 	function remove( x : T ) : Bool;
 	function copy() : Array<T>;
 	function iterator() : Iterator<T>;
-	function indexes() : Iterator<Int>;
 
 }

+ 0 - 12
std/flash/Boot.hx

@@ -225,18 +225,6 @@ class Boot {
 					}
 				}
 			};
-			Array.prototype.indexes = function() {
-				return {
-					cur : 0,
-					arr : this,
-					hasNext : function() {
-						return this.cur < this.arr.length;
-					},
-					next : function() {
-						return this.cur++;
-					}
-				}
-			};
 			// copy base classes from root to flash package
 			// we can't make a loop since we need to assign short-type-ids
 			flash.Accessibility = _global["Accessibility"];

+ 0 - 12
std/js/Boot.hx

@@ -199,18 +199,6 @@ class Boot {
 					}
 				}
 			};
-			Array.prototype.indexes = function() {
-				return {
-					cur : 0,
-					arr : this,
-					hasNext : function() {
-						return this.cur < this.arr.length;
-					},
-					next : function() {
-						return this.cur++;
-					}
-				}
-			};
 			var oldsub = String.prototype.substr;
 			String.prototype.substr = function(pos,len){
 				if( pos < 0 ){

+ 0 - 13
std/neko/NekoArray__.hx

@@ -63,19 +63,6 @@ class NekoArray__<T> implements Array<T> {
 		return untyped Array.new1(__dollar__acopy(this.__a),this.length);
 	}
 
-	public function indexes() {
-		return untyped {
-			a : this,
-			p : 0,
-			hasNext : function() {
-				return this.p < this.a.length;
-			},
-			next : function() {
-				return this.p++;
-			}
-		};
-	}
-
 	public function iterator() {
 		return untyped {
 			a : this,