s3:winbind Kill amusing but un-used winbindd_kill_all_clients master3-reviewed
authorAndrew Bartlett <abartlet@samba.org>
Thu, 13 May 2010 07:41:33 +0000 (17:41 +1000)
committerStefan Metzmacher <metze@samba.org>
Fri, 28 May 2010 16:08:28 +0000 (18:08 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd_proto.h
source3/winbindd/winbindd_util.c

index 6a6490f9f7a0ec110a0e1d8c7733927ba415594f..8ebbb2a842ccc7a0cb5c6c4ec6844a819cbddd58 100644 (file)
@@ -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,
index c808d2df37059d578e4eddec967f5a52bf71806e..970e599e2b1f9d2e26191edd7d381dca2370290e 100644 (file)
@@ -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)