From ea7d67c33ef28f4155b04b322ebbf778f1dbaa2a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 7 Jul 2017 00:14:50 -0700 Subject: Dead code removal (stuff for removed sync transport apis.) --- src/core/endpt.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/core/endpt.c') diff --git a/src/core/endpt.c b/src/core/endpt.c index e5a9a5bb..ddfde49e 100644 --- a/src/core/endpt.c +++ b/src/core/endpt.c @@ -266,12 +266,7 @@ nni_ep_connect_sync(nni_ep *ep) if (rv != 0) { return (rv); } - if (ep->ep_ops.ep_connect != NULL) { - rv = nni_ep_connect_aio(ep, &pipe->p_tran_data); - } else { - rv = ep->ep_ops.ep_connect_sync(ep->ep_data, - &pipe->p_tran_data); - } + rv = nni_ep_connect_aio(ep, &pipe->p_tran_data); if (rv != 0) { nni_pipe_remove(pipe); return (rv); @@ -461,12 +456,7 @@ nni_ep_accept_sync(nni_ep *ep) if (rv != 0) { return (rv); } - if (ep->ep_ops.ep_accept != NULL) { - rv = nni_ep_accept_aio(ep, &pipe->p_tran_data); - } else { - rv = ep->ep_ops.ep_accept_sync(ep->ep_data, - &pipe->p_tran_data); - } + rv = nni_ep_accept_aio(ep, &pipe->p_tran_data); if (rv != 0) { nni_pipe_remove(pipe); return (rv); -- cgit v1.2.3-70-g09d2