Browse Source

Lua : remove unnecessary code from genlua

Justin Donaldson 9 years ago
parent
commit
8e58ffa6f2
1 changed files with 0 additions and 10 deletions
  1. 0 10
      genlua.ml

+ 0 - 10
genlua.ml

@@ -1712,16 +1712,6 @@ let generate com =
 	spr ctx "   return ret; "; newline ctx;
 	spr ctx "end"; newline ctx;
 
-
-	(* spr ctx "__proto = function(...)"; newline ctx; *)
-	(* spr ctx "   local ret = __anon(...);"; newline ctx; *)
-	(* spr ctx "   rawset(ret,'__ifields__',{})"; newline ctx; *)
-	(* spr ctx "   for k, v in pairs(ret.__fields__) do"; newline ctx; *)
-	(* spr ctx "	ret.__ifields__[k] = v"; newline ctx; *)
-	(* spr ctx "   end"; newline ctx; *)
-	(* spr ctx "   return ret"; newline ctx; *)
-	(* spr ctx "end"; newline ctx; *)
-
 	spr ctx "__staticToInstance = function(tab)"; newline ctx;
 	spr ctx "   return _G.setmetatable({}, {"; newline ctx;
 	spr ctx "	__index = function(t,k)"; newline ctx;