From 124119f0bb12384cef35aa041d7c3a686108722d Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Fri, 22 Apr 2022 17:42:09 +0100 Subject: [PATCH] BaseSocket: Remove dead code in BaseSocket.bind(to:) (#2086) Signed-off-by: Si Beaumont --- Sources/NIOPosix/BaseSocket.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sources/NIOPosix/BaseSocket.swift b/Sources/NIOPosix/BaseSocket.swift index da1542b224..1e6962fe67 100644 --- a/Sources/NIOPosix/BaseSocket.swift +++ b/Sources/NIOPosix/BaseSocket.swift @@ -353,10 +353,6 @@ class BaseSocket: BaseSocketProtocol { /// - throws: An `IOError` if the operation failed. func bind(to address: SocketAddress) throws { try self.withUnsafeHandle { fd in - func doBind(ptr: UnsafePointer, bytes: Int) throws { - try NIOBSDSocket.bind(socket: fd, address: ptr, address_len: socklen_t(bytes)) - } - try address.withSockAddr { try NIOBSDSocket.bind(socket: fd, address: $0, address_len: socklen_t($1)) }