From fa430fa6225ea1c78ffc263bf0e9bb612fc15a03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 6 Apr 2022 05:13:41 +0800 Subject: optmize --- script/vm/node.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'script/vm/node.lua') diff --git a/script/vm/node.lua b/script/vm/node.lua index 514625f1..b55c1ab5 100644 --- a/script/vm/node.lua +++ b/script/vm/node.lua @@ -19,10 +19,6 @@ function m.mergeNode(a, b) if not a then return b end - if a.type == 'union' then - a:merge(b) - return a - end return union(a, b) end @@ -32,11 +28,7 @@ function m.setNode(source, node) end local me = m.nodeCache[source] if not me then - if node.type == 'union' then - m.nodeCache[source] = node:copy() - else - m.nodeCache[source] = node - end + m.nodeCache[source] = node return end if me == node then -- cgit v1.2.3