inline Port.setstate; remove unused network codes
This commit is contained in:
14
sim/main.lua
14
sim/main.lua
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user