aboutsummaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-05 11:22:44 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-05 11:22:44 -0700
commit56b4dba80ed37469d6302337f38e6539dd78889f (patch)
treec9225efd6639d34699f262007081ce382962ed3a /src/platform
parent809909449c371c73dd56770ca1bbe11127a4f915 (diff)
downloadnng-56b4dba80ed37469d6302337f38e6539dd78889f.tar.gz
nng-56b4dba80ed37469d6302337f38e6539dd78889f.tar.bz2
nng-56b4dba80ed37469d6302337f38e6539dd78889f.zip
Cleanup some unused things.
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/posix/posix_socket.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/platform/posix/posix_socket.c b/src/platform/posix/posix_socket.c
index dabad3af..9e054c42 100644
--- a/src/platform/posix/posix_socket.c
+++ b/src/platform/posix/posix_socket.c
@@ -45,7 +45,6 @@ struct nni_posix_sock {
int fd;
char * unlink; // path to unlink at unbind
nni_posix_pipedesc * pd;
- nni_posix_epdesc * ed;
int tcpnodelay;
};
@@ -213,9 +212,6 @@ nni_posix_sock_fini(nni_posix_sock *s)
if (s->pd != NULL) {
nni_posix_pipedesc_fini(s->pd);
}
- if (s->ed != NULL) {
- nni_posix_epdesc_fini(s->ed);
- }
if (s->unlink != NULL) {
(void) unlink(s->unlink);
nni_free(s->unlink, strlen(s->unlink) + 1);
@@ -311,11 +307,6 @@ nni_posix_sock_listen(nni_posix_sock *s, const nni_sockaddr *saddr)
return (rv);
}
- if ((rv = nni_posix_epdesc_init(&s->ed, fd)) != 0) {
- (void) close(fd);
- return (rv);
- }
-
s->fd = fd;
return (0);