diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-07 00:14:50 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-07 00:14:50 -0700 |
| commit | ea7d67c33ef28f4155b04b322ebbf778f1dbaa2a (patch) | |
| tree | 1fc9e4dcf8d5c508b1c3c653fff42088228c2513 /src/core/endpt.c | |
| parent | 3730260da3744b549aaa1fe13946a674f924f63c (diff) | |
| download | nng-ea7d67c33ef28f4155b04b322ebbf778f1dbaa2a.tar.gz nng-ea7d67c33ef28f4155b04b322ebbf778f1dbaa2a.tar.bz2 nng-ea7d67c33ef28f4155b04b322ebbf778f1dbaa2a.zip | |
Dead code removal (stuff for removed sync transport apis.)
Diffstat (limited to 'src/core/endpt.c')
| -rw-r--r-- | src/core/endpt.c | 14 |
1 files changed, 2 insertions, 12 deletions
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); |
