make net in port lists arrays

This commit is contained in:
Redo0
2021-05-25 17:18:57 -05:00
parent d25893566e
commit 730ca3fd64
5 changed files with 17 additions and 18 deletions

View File

@@ -270,18 +270,6 @@ function Simulation.queuegroup(self, group)
end
end
local function array_remove(array, value)
for i = 1, #array do
local v = array[i]
if v==value then
array[i] = array[#array]
array[#array] = nil
return
end
end
error("element not in array")
end
function Simulation.dequeuegroup(self, group)
if group.in_queue then
array_remove(self.groupqueue, group)