ncannasse пре 7 година
родитељ
комит
109cdf0cf6
1 измењених фајлова са 0 додато и 19 уклоњено
  1. 0 19
      h3d/pass/Shadows.hx

+ 0 - 19
h3d/pass/Shadows.hx

@@ -87,15 +87,6 @@ class Shadows extends Default {
 		var last = null;
 
 		var cur = passes;
-
-		var count = 0;
-		while( cur != null )  {
-			if( cur.pass.isStatic == isStatic )
-				count++;
-			cur = cur.next;
-		}
-		cur = passes;
-
 		while( cur != null ) {
 			if( cur.pass.isStatic == isStatic ) {
 				if( head == null )
@@ -118,16 +109,6 @@ class Shadows extends Default {
 			last.next = head;
 		if( prev != null )
 			prev.next = null;
-
-
-		cur = head;
-		while( cur != null )  {
-			if( cur.pass.isStatic != isStatic ) throw "assert";
-			count--;
-			cur = cur.next;
-		}
-		if( count != 0 ) throw "assert";
-
 		return head;
 	}