inline Port.setstate; remove unused network codes

This commit is contained in:
Redo0
2021-05-25 20:37:29 -05:00
parent c62d7340b0
commit 09e65faec4
5 changed files with 18 additions and 32 deletions

View File

@@ -212,20 +212,6 @@ while 1 do
Wire.setlayer(wire, tonumber(data[i+2]))
end
i = i + 2
elseif data[i] == "SP" then
local gate = Simulation.getgatebyref(sim, tonumber(data[i+1]))
if gate ~= nil then
Port.setstate(gate.ports[tonumber(data[i+2])], toboolean(data[i+3]))
end
i = i + 3
elseif data[i] == "SG" then
local wire = Simulation.getwirebyref(sim, tonumber(data[i+1]))
if wire ~= nil then
Group.setstate(Wire.getgroup(wire), toboolean(data[i+2]))
end
i = i + 2
elseif data[i] == "OPT" then
local option = data[i+1]