Browse Source

[cs] remove @:functionCode

Dan Korostelev 10 years ago
parent
commit
3657330aec
1 changed files with 5 additions and 8 deletions
  1. 5 8
      std/cs/internal/Runtime.hx

+ 5 - 8
std/cs/internal/Runtime.hx

@@ -742,16 +742,13 @@ import cs.system.Object;
 		return untyped obj.ToString();
 	}
 
-	@:functionCode('
-			if (t1 == null || t2 == null)
-				return t1 == t2;
-			string n1 = Type.getClassName(t1);
-			string n2 = Type.getClassName(t2);
-			return n1.Equals(n2);
-	')
 	public static function typeEq(t1:Type, t2:Type):Bool
 	{
-		return false;
+		if (t1 == null || t2 == null)
+			return t1 == t2;
+		var n1 = std.Type.getClassName(cast t1);
+		var n2 = std.Type.getClassName(cast t2);
+		return n1 == n2;
 	}