summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-12 14:35:42 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-17 19:12:24 +0100
commit03acd2912847ba49d50d865662519ac24b9abe4c (patch)
tree45694f572944a2c06d9dde106d17ba2d3143063e
parentfa23a63b4d290ba81a593adad1b6a6612bdb3b93 (diff)
downloadsamba-03acd2912847ba49d50d865662519ac24b9abe4c.tar.gz
samba-03acd2912847ba49d50d865662519ac24b9abe4c.tar.bz2
samba-03acd2912847ba49d50d865662519ac24b9abe4c.zip
s4:lib/socket: remove unused code
metze
-rw-r--r--source4/lib/socket/connect.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/source4/lib/socket/connect.c b/source4/lib/socket/connect.c
index 2b64668b9b..2598d8e5f8 100644
--- a/source4/lib/socket/connect.c
+++ b/source4/lib/socket/connect.c
@@ -39,25 +39,16 @@ static void socket_connect_handler(struct event_context *ev,
struct fd_event *fde,
uint16_t flags, void *private);
static void continue_resolve_name(struct composite_context *ctx);
-static void continue_socket_connect(struct composite_context *creq);
/*
call the real socket_connect() call, and setup event handler
*/
static void socket_send_connect(struct composite_context *result)
{
- struct composite_context *creq;
struct fd_event *fde;
struct connect_state *state = talloc_get_type(result->private_data,
struct connect_state);
- creq = talloc_zero(state, struct composite_context);
- if (composite_nomem(creq, result)) return;
- creq->state = COMPOSITE_STATE_IN_PROGRESS;
- creq->event_ctx = result->event_ctx;
- creq->async.fn = continue_socket_connect;
- creq->async.private_data = result;
-
result->status = socket_connect(state->sock,
state->my_address,
state->server_address,
@@ -176,19 +167,6 @@ static void continue_resolve_name(struct composite_context *creq)
}
/*
- called when a connect has finished. Complete the top level composite context
-*/
-static void continue_socket_connect(struct composite_context *creq)
-{
- struct composite_context *result = talloc_get_type(creq->async.private_data,
- struct composite_context);
- result->status = creq->status;
- if (!composite_is_ok(result)) return;
- composite_done(result);
-}
-
-
-/*
wait for a socket_connect_send() to finish
*/
NTSTATUS socket_connect_recv(struct composite_context *result)