s3: sendto_domain() is lo longer used
authorVolker Lendecke <vl@samba.org>
Sat, 24 Apr 2010 09:11:45 +0000 (11:11 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 24 Apr 2010 09:12:19 +0000 (11:12 +0200)
source3/winbindd/winbindd_dual.c
source3/winbindd/winbindd_proto.h

index eb9ace23d678936dc3b93706454912bb3ef1172b..073749eb7e28603cc5e59faede5e7b1884dce747 100644 (file)
@@ -428,34 +428,6 @@ static void async_domain_request_done(struct tevent_req *req)
        state->continuation(state->private_data_data, true);
 }
 
-static void recvfrom_child(void *private_data_data, bool success)
-{
-       struct winbindd_cli_state *state =
-               talloc_get_type_abort(private_data_data, struct winbindd_cli_state);
-       enum winbindd_result result = state->response->result;
-
-       /* This is an optimization: The child has written directly to the
-        * response buffer. The request itself is still in pending state,
-        * state that in the result code. */
-
-       state->response->result = WINBINDD_PENDING;
-
-       if ((!success) || (result != WINBINDD_OK)) {
-               request_error(state);
-               return;
-       }
-
-       request_ok(state);
-}
-
-void sendto_domain(struct winbindd_cli_state *state,
-                  struct winbindd_domain *domain)
-{
-       async_domain_request(state->mem_ctx, domain,
-                            state->request, state->response,
-                            recvfrom_child, state);
-}
-
 static void child_process_request(struct winbindd_child *child,
                                  struct winbindd_cli_state *state)
 {
index 2bf33cbc1ef092838cde6c02d693764df715d0cb..981b2f644f28ee223642ebeee110a5a15933b84e 100644 (file)
@@ -276,8 +276,6 @@ void async_domain_request(TALLOC_CTX *mem_ctx,
                          struct winbindd_response *response,
                          void (*continuation)(void *private_data_data, bool success),
                          void *private_data_data);
-void sendto_domain(struct winbindd_cli_state *state,
-                  struct winbindd_domain *domain);
 void setup_child(struct winbindd_domain *domain, struct winbindd_child *child,
                 const struct winbindd_child_dispatch_table *table,
                 const char *logprefix,