Browse Source

[lua] clean up some traces and streamline dupe handlers

Justin Donaldson 8 years ago
parent
commit
473ed58bfe
2 changed files with 1 additions and 9 deletions
  1. 1 8
      src/generators/genlua.ml
  2. 0 1
      tests/unit/src/unit/issues/Issue6298.hx

+ 1 - 8
src/generators/genlua.ml

@@ -1190,14 +1190,7 @@ and gen_tbinop ctx op e1 e2 =
 		gen_value ctx e1;
 		spr ctx " = ";
 		gen_value ctx e3;
-	    | TField(e3, FInstance _ ), TField(e4, FStatic _ )  ->
-		gen_value ctx e1;
-		print ctx " %s " (Ast.s_binop op);
-		add_feature ctx "use._hx_funcToField";
-		spr ctx "_hx_funcToField(";
-		gen_value ctx e2;
-		spr ctx ")";
-	    | TField(e3, FInstance _ ), TField(e4, FClosure _ )  ->
+	    | TField(e3, FInstance _ ), TField(e4, (FClosure _| FStatic _) )  ->
 		gen_value ctx e1;
 		print ctx " %s " (Ast.s_binop op);
 		add_feature ctx "use._hx_funcToField";

+ 0 - 1
tests/unit/src/unit/issues/Issue6298.hx

@@ -9,7 +9,6 @@ class Issue6298 extends unit.Test {
 
 class Test {
 	public static function good (s : String) : String {
-		trace (s);
 		return s;
 	}
 }