Removed commented code

This commit is contained in:
Gabriel Tofvesson 2024-10-12 19:49:54 +02:00
parent e9a68f4614
commit a07a801cab

View File

@ -704,51 +704,6 @@ local PAGES = {
reloadState()
return renderDefault(state, screenContainer)
--[[
if pageState.stacks == nil then
pageState.stacks = ItemGroup.collectStacks(state.controller:find(function(stack)
return not stack:isEmpty()
end))
table.sort(pageState.stacks, function(a, b) return a:getItemCount() > b:getItemCount() end)
end
local listResult, listState = itemList(
pageState.stacks,
state.width,
state.height,
pageState.listState,
function(element, x, y, source, group)
state:setPage("GROUP_DETAIL", group)
return true
end,
function(page)
if page == nil then
state:reloadPage()
else
state:setPage(page)
end
end,
function()
print("Importing...")
state.node:rescan()
-- Safely handle transfers, priming computer for a full reset/rescan in case server stops mid-transaction
state:itemTransaction(function()
for _,nodeStack in ipairs(state.node:find(function(s) return not s:isEmpty() end)) do
if not state.controller:insertStack(nodeStack) then
print("Couldn't find a free slot for: "..nodeStack:getSimpleName())
end
end
end)
-- Force reload stacks
state:currentPageState({}).stacks = nil
state:reloadPage()
end
)
pageState.listState = listState
return renderDefault(state, listResult)
]]--
end,
GROUP_DETAIL = function(state)