Переглянути джерело

No special code for cpp in Array.hx

Hugh Sanderson 16 роки тому
батько
коміт
925070786d
2 змінених файлів з 2 додано та 6 видалено
  1. 0 4
      std/Array.hx
  2. 2 2
      std/haxe/FastList.hx

+ 0 - 4
std/Array.hx

@@ -38,11 +38,7 @@ extern class Array<T> {
 	/**
 		Creates a new Array.
 	**/
-	#if (cpp)
-	function new(length:Int = 0, fixed:Bool = false) : Void;
-	#else
 	function new() : Void;
-	#end
 
 	/**
 		Returns a new Array by appending [a] to [this].

+ 2 - 2
std/haxe/FastList.hx

@@ -24,7 +24,7 @@
  */
 package haxe;
 
-class FastCell<T> #if flash9 implements haxe.rtti.Generic #end {
+class FastCell<T> #if (flash9 || cpp) implements haxe.rtti.Generic #end {
 	public var elt : T;
 	public var next : FastCell<T>;
 	public function new(elt,next) { this.elt = elt; this.next = next; }
@@ -33,7 +33,7 @@ class FastCell<T> #if flash9 implements haxe.rtti.Generic #end {
 /**
 	A linked-list of elements. A different class is created for each container used in platforms where it matters
 **/
-class FastList<T> #if flash9 implements haxe.rtti.Generic #end {
+class FastList<T> #if (flash9 || cpp) implements haxe.rtti.Generic #end {
 
 	public var head : FastCell<T>;