From 0e4e2a088398c6fa3c42b69e009fc40b500c7453 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 2 May 2018 21:20:58 +0200 Subject: [PATCH] winbindd: Remove the "old" non-bool dispatch table Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- source3/winbindd/winbindd.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 1542edb6cb0..8ad16b8ca58 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -521,22 +521,6 @@ static void winbind_msg_validate_cache(struct messaging_context *msg_ctx, _exit(0); } -static struct winbindd_dispatch_table { - enum winbindd_cmd cmd; - void (*fn)(struct winbindd_cli_state *state); - const char *winbindd_cmd_name; -} dispatch_table[] = { - - /* Enumeration functions */ - - - /* Miscellaneous */ - - /* End of list */ - - { WINBINDD_NUM_CMDS, NULL, "NONE" } -}; - static struct winbindd_bool_dispatch_table { enum winbindd_cmd cmd; bool (*fn)(struct winbindd_cli_state *state); @@ -678,7 +662,6 @@ static void wb_request_done(struct tevent_req *req); static void process_request(struct winbindd_cli_state *state) { - struct winbindd_dispatch_table *table = dispatch_table; struct winbindd_async_dispatch_table *atable; size_t i; bool ok; @@ -743,16 +726,6 @@ static void process_request(struct winbindd_cli_state *state) state->response->result = WINBINDD_PENDING; state->response->length = sizeof(struct winbindd_response); - for (table = dispatch_table; table->fn; table++) { - if (state->request->cmd == table->cmd) { - DEBUG(10,("process_request: request fn %s\n", - table->winbindd_cmd_name )); - state->cmd_name = table->winbindd_cmd_name; - table->fn(state); - return; - } - } - for (i=0; irequest->cmd) { break; -- 2.34.1