Index: runtime/bin/socket_macos.cc |
diff --git a/runtime/bin/socket_macos.cc b/runtime/bin/socket_macos.cc |
index 1f01ab315fce8c674718774433550b7434a837ca..29edf920084fce925572fed7d73992c30199298e 100644 |
--- a/runtime/bin/socket_macos.cc |
+++ b/runtime/bin/socket_macos.cc |
@@ -9,7 +9,7 @@ |
#include "bin/socket.h" |
-#include <errno.h> // NOLINT |
+#include <errno.h> // NOLINT |
#include "bin/fdutils.h" |
#include "platform/signal_blocker.h" |
@@ -20,12 +20,10 @@ namespace bin { |
Socket::Socket(intptr_t fd) |
: ReferenceCounted(), fd_(fd), port_(ILLEGAL_PORT) {} |
- |
void Socket::SetClosedFd() { |
fd_ = kClosedFd; |
} |
- |
static intptr_t Create(const RawAddr& addr) { |
intptr_t fd; |
fd = NO_RETRY_EXPECTED(socket(addr.ss.ss_family, SOCK_STREAM, 0)); |
@@ -43,7 +41,6 @@ static intptr_t Create(const RawAddr& addr) { |
return fd; |
} |
- |
static intptr_t Connect(intptr_t fd, const RawAddr& addr) { |
intptr_t result = TEMP_FAILURE_RETRY( |
connect(fd, &addr.addr, SocketAddress::GetAddrLength(addr))); |
@@ -54,7 +51,6 @@ static intptr_t Connect(intptr_t fd, const RawAddr& addr) { |
return -1; |
} |
- |
intptr_t Socket::CreateConnect(const RawAddr& addr) { |
intptr_t fd = Create(addr); |
if (fd < 0) { |
@@ -64,7 +60,6 @@ intptr_t Socket::CreateConnect(const RawAddr& addr) { |
return Connect(fd, addr); |
} |
- |
intptr_t Socket::CreateBindConnect(const RawAddr& addr, |
const RawAddr& source_addr) { |
intptr_t fd = Create(addr); |
@@ -82,7 +77,6 @@ intptr_t Socket::CreateBindConnect(const RawAddr& addr, |
return Connect(fd, addr); |
} |
- |
intptr_t Socket::CreateBindDatagram(const RawAddr& addr, bool reuseAddress) { |
intptr_t fd; |
@@ -115,7 +109,6 @@ intptr_t Socket::CreateBindDatagram(const RawAddr& addr, bool reuseAddress) { |
return fd; |
} |
- |
intptr_t ServerSocket::CreateBindListen(const RawAddr& addr, |
intptr_t backlog, |
bool v6_only) { |
@@ -169,13 +162,11 @@ intptr_t ServerSocket::CreateBindListen(const RawAddr& addr, |
return fd; |
} |
- |
bool ServerSocket::StartAccept(intptr_t fd) { |
USE(fd); |
return true; |
} |
- |
intptr_t ServerSocket::Accept(intptr_t fd) { |
intptr_t socket; |
struct sockaddr clientaddr; |