removed unused functions

This commit is contained in:
Sokomine 2021-05-14 22:17:07 +02:00
parent 1e1e4d8312
commit cfb9987911

View File

@ -352,43 +352,6 @@ local function delete_option(n_id, d_id, o_id)
save_dialog(n_id, dialog)
end
-- TODO: this function is unused (remove it?)
local function delete_prerequisite(n_id, d_id, o_id, p_id)
if d_id == yl_speak_up.text_new_dialog_id then
return false
end -- We don't delete "New dialog" Also, something might have gone wrong here.
if o_id == yl_speak_up.text_new_option_id then
return false
end -- We don't delete "New option" Also, something might have gone wrong here.
if p_id == yl_speak_up.text_new_prerequisite_id then
return false
end
local dialog = load_dialog(n_id)
dialog.n_dialogs[d_id].d_options[o_id].o_prerequisites[p_id] = nil
save_dialog(n_id, dialog)
end
-- TODO: this function is unused (remove it?)
local function delete_result(n_id, d_id, o_id, r_id)
if d_id == yl_speak_up.text_new_dialog_id then
return false
end -- We don't delete "New dialog" Also, something might have gone wrong here.
if o_id == yl_speak_up.text_new_option_id then
return false
end -- We don't delete "New option" Also, something might have gone wrong here.
if r_id == yl_speak_up.text_new_result_id then
return false
end
local dialog = load_dialog(n_id)
dialog.n_dialogs[d_id].d_options[o_id].o_resultss[r_id] = nil
save_dialog(n_id, dialog)
end
local function calculate_displayable_options(pname, d_options)
-- Let's go through all the options and see if we need to display them to the user