Преглед на файлове

Lua: remove references to haxeJson in Json.hx

Justin Donaldson преди 10 години
родител
ревизия
6b5fc4b952
променени са 1 файла, в които са добавени 0 реда и са изтрити 12 реда
  1. 0 12
      std/lua/_std/haxe/Json.hx

+ 0 - 12
std/lua/_std/haxe/Json.hx

@@ -22,26 +22,14 @@
 package haxe;
 
 @:coreApi
-#if (!haxeJSON && !old_browser)
-@:native("JSON") extern
-#end
 class Json {
 
-	#if haxeJSON inline #end
 	public static function parse( text : String ) : Dynamic {
 		return haxe.format.JsonParser.parse(text);
 	}
 
-	#if haxeJSON inline #end
 	public static function stringify( value : Dynamic, ?replacer:Dynamic -> Dynamic -> Dynamic, ?space:String ) : String {
 		return haxe.format.JsonPrinter.print(value, replacer, space);
 	}
 
-	#if (!haxeJSON && old_browser)
-	static function __init__():Void untyped {
-		if( __js__('typeof(JSON)') != 'undefined' )
-			Json = __js__('JSON');
-	}
-	#end
-
 }