Index: runtime/bin/socket.cc |
diff --git a/runtime/bin/socket.cc b/runtime/bin/socket.cc |
index ea5154e271ab6cc7c175881431985959a2c84c89..b0b6a345d3041730a5eef7994d8e74965e1a750c 100644 |
--- a/runtime/bin/socket.cc |
+++ b/runtime/bin/socket.cc |
@@ -170,20 +170,6 @@ bool ListeningSocketRegistry::CloseSafe(intptr_t socketfd) { |
} |
-Dart_Handle ListeningSocketRegistry::MarkSocketFdAsSharableHack( |
- intptr_t socketfd) { |
- MutexLocker ml(ListeningSocketRegistry::mutex_); |
- |
- SocketsIterator it = sockets_by_fd_.find(socketfd); |
- if (it != sockets_by_fd_.end()) { |
- it->second->shared = true; |
- return Dart_True(); |
- } else { |
- return Dart_False(); |
- } |
-} |
- |
- |
void FUNCTION_NAME(InternetAddress_Parse)(Dart_NativeArguments args) { |
const char* address = |
DartUtils::GetStringValue(Dart_GetNativeArgument(args, 0)); |
@@ -855,15 +841,6 @@ void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) { |
} |
-void FUNCTION_NAME(Socket_MarkSocketAsSharedHack)(Dart_NativeArguments args) { |
- intptr_t socketfd = |
- Socket::GetSocketIdNativeField(Dart_GetNativeArgument(args, 0)); |
- |
- ListeningSocketRegistry *registry = ListeningSocketRegistry::Instance(); |
- Dart_SetReturnValue(args, registry->MarkSocketFdAsSharableHack(socketfd)); |
-} |
- |
- |
void Socket::SetSocketIdNativeField(Dart_Handle socket, intptr_t id) { |
Dart_Handle err = |
Dart_SetNativeInstanceField(socket, kSocketIdNativeField, id); |