Removed some commented code

This commit is contained in:
George Sokianos 2021-12-31 12:14:48 +00:00
parent 5af782b884
commit 1f27d6f923
1 changed files with 0 additions and 4 deletions

View File

@ -66,13 +66,10 @@ end
function core.set_project_dir(new_dir, change_project_fn)
-- print("LUA DBG: before pcall " .. tostring(new_dir))
local chdir_ok = pcall(system.chdir, new_dir)
-- print("LUA DBG: after pcall " .. tostring(chdir_ok))
if chdir_ok then
if change_project_fn then change_project_fn() end
core.project_dir = normalize_path(new_dir)
-- print("LUA DBG: after normalize_path " .. tostring(new_dir) .. "\n" .. tostring(core.project_dir))
core.project_directories = {}
core.add_project_directory(new_dir)
core.project_files = {}
@ -506,7 +503,6 @@ function core.init()
update_recents_project("remove", project_dir)
end
project_dir_abs = system.absolute_path(".")
-- print("LUA DBG: project_dir_abs " .. tostring(project_dir_abs))
if not core.set_project_dir(project_dir_abs) then
system.show_fatal_error("Lite XL internal error", "cannot set project directory to cwd")
os.exit(1)