瀏覽代碼

Lua : remove unnecessary code from genlua

Justin Donaldson 9 年之前
父節點
當前提交
8e58ffa6f2
共有 1 個文件被更改,包括 0 次插入10 次删除
  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;