diff --git a/src/sp/transport/socket/sockfd.c b/src/sp/transport/socket/sockfd.c index d3d4218f4..ca0130775 100644 --- a/src/sp/transport/socket/sockfd.c +++ b/src/sp/transport/socket/sockfd.c @@ -801,15 +801,6 @@ sfd_tran_ep_init(sfd_tran_ep **epp, nng_url *url, nni_sock *sock) return (0); } -static int -sfd_tran_dialer_init(void **dp, nng_url *url, nni_dialer *ndialer) -{ - NNI_ARG_UNUSED(dp); - NNI_ARG_UNUSED(url); - NNI_ARG_UNUSED(ndialer); - return (NNG_ENOTSUP); -} - static int sfd_tran_listener_init(void **lp, nng_url *url, nni_listener *nlistener) { @@ -978,15 +969,6 @@ sfd_tran_listener_setopt( return (rv); } -static nni_sp_dialer_ops sfd_tran_dialer_ops = { - .d_init = sfd_tran_dialer_init, - .d_fini = NULL, - .d_connect = NULL, - .d_close = NULL, - .d_getopt = NULL, - .d_setopt = NULL, -}; - static nni_sp_listener_ops sfd_tran_listener_ops = { .l_init = sfd_tran_listener_init, .l_fini = sfd_tran_ep_fini, @@ -999,7 +981,7 @@ static nni_sp_listener_ops sfd_tran_listener_ops = { static nni_sp_tran sfd_tran = { .tran_scheme = "socket", - .tran_dialer = &sfd_tran_dialer_ops, + .tran_dialer = NULL, .tran_listener = &sfd_tran_listener_ops, .tran_pipe = &sfd_tran_pipe_ops, .tran_init = sfd_tran_init,