From 318d526a0d13aa9e92a1ee2ca5f850ca94e219cd Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Sat, 10 Feb 2024 15:36:32 +1100 Subject: [PATCH] ctdb-common: Remove unused variable ctdb_eventscript_call_names. Signed-off-by: Martin Schwenke Reviewed-by: Volker Lendecke --- ctdb/common/ctdb_util.c | 17 ----------------- ctdb/include/ctdb_protocol.h | 3 --- 2 files changed, 20 deletions(-) diff --git a/ctdb/common/ctdb_util.c b/ctdb/common/ctdb_util.c index 5c7731c5d2a..5daa69d375b 100644 --- a/ctdb/common/ctdb_util.c +++ b/ctdb/common/ctdb_util.c @@ -594,23 +594,6 @@ ctdb_node_list_to_map(struct ctdb_node **nodes, uint32_t num_nodes, return node_map; } -const char *ctdb_eventscript_call_names[] = { - "init", - "setup", - "startup", - "startrecovery", - "recovered", - "takeip", - "releaseip", - "stopped", - "monitor", - "status", - "shutdown", - "reload", - "updateip", - "ipreallocated" -}; - /* Runstate handling */ static struct { enum ctdb_runstate runstate; diff --git a/ctdb/include/ctdb_protocol.h b/ctdb/include/ctdb_protocol.h index 31af4201040..bec849e857c 100644 --- a/ctdb/include/ctdb_protocol.h +++ b/ctdb/include/ctdb_protocol.h @@ -52,9 +52,6 @@ struct ctdb_script_list_old { struct ctdb_script scripts[1]; }; -/* Mapping from enum to names. */ -extern const char *ctdb_eventscript_call_names[]; - /* packet structures */ -- 2.11.4.GIT