From 72191a68fce18a22296b91f5a9b85ccbc3d6c86f Mon Sep 17 00:00:00 2001 From: Ken Gaillot Date: Apr 07 2021 22:24:57 +0000 Subject: Refactor: tools: remove dead code from crm_node --- diff --git a/tools/crm_node.c b/tools/crm_node.c index 1773a36..57c2ee5 100644 --- a/tools/crm_node.c +++ b/tools/crm_node.c @@ -130,25 +130,6 @@ remove_cb(const gchar *option_name, const gchar *optarg, gpointer data, GError * return TRUE; } -/*! - * \internal - * \brief Exit crm_node - * Clean up memory, and either quit mainloop (if running) or exit - * - * \param[in] value Exit status - */ -static void -crm_node_exit(crm_exit_t value) -{ - exit_code = value; - - if (mainloop && g_main_loop_is_running(mainloop)) { - g_main_loop_quit(mainloop); - } else { - crm_exit(exit_code); - } -} - static void controller_event_cb(pcmk_ipc_api_t *controld_api, enum pcmk_ipc_event event_type, crm_exit_t status, @@ -660,6 +641,5 @@ done: g_strfreev(processed_args); g_clear_error(&error); pcmk__free_arg_context(context); - crm_node_exit(exit_code); - return exit_code; + return crm_exit(exit_code); }