]> Kevux Git Server - fll/commitdiff
Cleanup: Remove dead code in controller program.
authorKevin Day <kevin@kevux.org>
Thu, 9 Mar 2023 02:47:47 +0000 (20:47 -0600)
committerKevin Day <kevin@kevux.org>
Thu, 9 Mar 2023 02:47:47 +0000 (20:47 -0600)
The process variable is not used.
I decided to not remove the now unused process parameter from the relevant functions.
This prevents breaking API and ABI.

level_3/controller/c/entry/private-entry.c

index 3da8e6a3a53e6ab30348373c3f7ed1b7d5b3f3ed..242bfb73d8d91477db28ca1e0cf6d313676cbd6f 100644 (file)
@@ -850,7 +850,6 @@ extern "C" {
     controller_entry_t *entry = is_entry ? &global->setting->entry : &global->setting->exit;
     controller_entry_action_t *entry_action = 0;
     controller_entry_actions_t *entry_actions = 0;
-    controller_process_t *process = 0;
 
     // An empty stack is used here because each rule here is the first rule run in the rule's scope.
     const f_array_lengths_t stack = f_array_lengths_t_initialize;
@@ -1017,7 +1016,7 @@ extern "C" {
             }
 
             if (global->main->parameters.array[controller_parameter_validate_e].result == f_console_result_none_e) {
-              status = controller_rule_wait_all(*global, is_entry, F_false, process);
+              status = controller_rule_wait_all(*global, is_entry, F_false, 0);
               if (F_status_is_error(status)) return status;
             }
           }
@@ -1327,7 +1326,7 @@ extern "C" {
             return F_execute;
           }
 
-          controller_thread_process_cancel(*global, is_entry, is_entry ? controller_thread_cancel_execute_e : controller_thread_cancel_exit_execute_e, process);
+          controller_thread_process_cancel(*global, is_entry, is_entry ? controller_thread_cancel_execute_e : controller_thread_cancel_exit_execute_e, 0);
 
           int result = 0;
           int option = FL_execute_parameter_option_path_d;