Remove getGraphMenuEntries function

This commit is contained in:
emanuele-f 2019-04-08 18:36:04 +02:00
parent db44a554c9
commit acdd80767e

View file

@ -338,6 +338,8 @@ end
-- Prints the menu from the populated graph_menu_entries.
-- The entry_print_callback is called to print the actual entries.
function printGraphMenuEntries(entry_print_callback)
local active_entries = {}
for idx, entry in ipairs(graph_menu_entries) do
if(entry.pending and (entry.pending > 0)) then
-- not verified, act like it does not exist
@ -355,14 +357,14 @@ function printGraphMenuEntries(entry_print_callback)
print(entry.html)
else
entry_print_callback(idx, entry)
active_entries[#active_entries + 1] = entry
end
::continue::
end
end
function getGraphMenuEntries()
return graph_menu_entries
-- NOTE: only return the graph_menu_entries which are non-pending
return active_entries
end
-- ########################################################