Browse Source

remove Js feature cruft

Simon Krajewski 11 years ago
parent
commit
6509491a68
2 changed files with 2 additions and 6 deletions
  1. 0 4
      genpy.ml
  2. 2 2
      std/python/_std/Reflect.hx

+ 0 - 4
genpy.ml

@@ -1184,10 +1184,6 @@ module Printer = struct
 			| "super",_ ->
 			| "super",_ ->
 				let s_el = print_exprs pctx ", " el in
 				let s_el = print_exprs pctx ", " el in
 				Printf.sprintf "super().__init__(%s)" s_el
 				Printf.sprintf "super().__init__(%s)" s_el
-			| "__feature__",_ ->
-				""
-			| "__define_feature__",[_;e1] ->
-				print_expr pctx e1
 			| ("python_Syntax.pythonCode"),[e1] ->
 			| ("python_Syntax.pythonCode"),[e1] ->
 				begin match e1.eexpr with
 				begin match e1.eexpr with
 					| TConst (TString s) -> s
 					| TConst (TString s) -> s

+ 2 - 2
std/python/_std/Reflect.hx

@@ -63,7 +63,7 @@ class Reflect {
 	@:keep public static function setField( o : Dynamic, field : String, value : Dynamic ) : Void
 	@:keep public static function setField( o : Dynamic, field : String, value : Dynamic ) : Void
 	{
 	{
 		var field = handleKeywords(field);
 		var field = handleKeywords(field);
-		return untyped __define_feature__("Reflect.setField",Builtin.setattr(o,field,value));
+		return Builtin.setattr(o,field,value);
 	}
 	}
 
 
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic
@@ -90,7 +90,7 @@ class Reflect {
 			var tmp = Builtin.getattr(o,"set_"+field);
 			var tmp = Builtin.getattr(o,"set_"+field);
 			tmp(value);
 			tmp(value);
 		}
 		}
-		else Builtin.setattr(o,field, untyped __define_feature__("Reflect.setProperty",value));
+		else Builtin.setattr(o,field, value);
 	}
 	}
 
 
 	public static function callMethod( o : Dynamic, func : Dynamic, args : Array<Dynamic> ) : Dynamic
 	public static function callMethod( o : Dynamic, func : Dynamic, args : Array<Dynamic> ) : Dynamic