From 706fcdb5c4327087790f0aee15f01cf0e6bdffb1 Mon Sep 17 00:00:00 2001 From: osmarks Date: Sun, 23 Aug 2020 21:27:01 +0100 Subject: [PATCH] remove unused code --- src/potatobios.lua | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/potatobios.lua b/src/potatobios.lua index 1156a92..2a77926 100644 --- a/src/potatobios.lua +++ b/src/potatobios.lua @@ -1776,28 +1776,9 @@ if meta then _G.meta = meta.new() end if _G.textutilsprompt then textutils.prompt = _G.textutilsprompt end --- Something or other for in-sandbox code execution triggered from out of sandbox. Not used, mostly. -local function potatoexecutor() - while true do - local e, code = coroutine.yield "potatoexecute" - if e == "potatoexecute" then - local f, error = load(code, "@", "t", _ENV) - if f then -- run safely in background, send back response - process.thread(function() - local resp = {pcall(f)} - os.queueEvent("potatoexecute_result", resp) - end) - else - os.queueEvent("potatoexecute_result", {false, error}) - end - end - end -end - if process then process.spawn(keyboard_shortcuts, "kbsd") if http.websocket then process.spawn(potatoNET, "systemd-potatod") end - process.spawn(potatoexecutor, "potatoexecutor") local autorun = potatOS.registry.get "potatOS.autorun" if type(autorun) == "string" then autorun = load(autorun)