From 8d6f88b469cea1aff0d3211f0a9dbd08e6a31497 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 13 May 2010 17:41:33 +1000 Subject: s3:winbind Kill amusing but un-used winbindd_kill_all_clients Signed-off-by: Stefan Metzmacher --- source3/winbindd/winbindd_proto.h | 1 - source3/winbindd/winbindd_util.c | 17 ----------------- 2 files changed, 18 deletions(-) (limited to 'source3') diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index 6a6490f9f7..8ebbb2a842 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -424,7 +424,6 @@ int open_winbindd_priv_socket(void); struct winbindd_cli_state *winbindd_client_list(void); void winbindd_add_client(struct winbindd_cli_state *cli); void winbindd_remove_client(struct winbindd_cli_state *cli); -void winbindd_kill_all_clients(void); int winbindd_num_clients(void); NTSTATUS lookup_usergroups_cached(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx, diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index c808d2df37..970e599e2b 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -1101,23 +1101,6 @@ void winbindd_remove_client(struct winbindd_cli_state *cli) _num_clients--; } -/* Close all open clients */ - -void winbindd_kill_all_clients(void) -{ - struct winbindd_cli_state *cl = winbindd_client_list(); - - DEBUG(10, ("winbindd_kill_all_clients: going postal\n")); - - while (cl) { - struct winbindd_cli_state *next; - - next = cl->next; - winbindd_remove_client(cl); - cl = next; - } -} - /* Return number of open clients */ int winbindd_num_clients(void) -- cgit