Explorar o código

Lua : remove unnecessary code from genlua

Justin Donaldson %!s(int64=9) %!d(string=hai) anos
pai
achega
8e58ffa6f2
Modificáronse 1 ficheiros con 0 adicións e 10 borrados
  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;