make net in port lists arrays
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user