Bladeren bron

remove js inlining hackery for ListIterator since haxe doesn't have js inline restrictions now \o/

Dan Korostelev 9 jaren geleden
bovenliggende
commit
731c20a5f6
1 gewijzigde bestanden met toevoegingen van 1 en 3 verwijderingen
  1. 1 3
      std/List.hx

+ 1 - 3
std/List.hx

@@ -262,11 +262,9 @@ private class ListNode<T> {
 
 private class ListIterator<T> {
 	var head:ListNode<T>;
-	#if (js && !analyzer) var val:Dynamic; #end
 
 	public inline function new(head:ListNode<T>) {
 		this.head = head;
-		#if (js && !analyzer) this.val = null; #end
 	}
 
 	public inline function hasNext():Bool {
@@ -274,7 +272,7 @@ private class ListIterator<T> {
 	}
 
 	public inline function next():T {
-		#if (!js || analyzer) var #end val = head.item;
+		var val = head.item;
 		head = head.next;
 		return val;
 	}