Skip to content

Commit 124119f

Browse files
BaseSocket: Remove dead code in BaseSocket.bind(to:) (#2086)
Signed-off-by: Si Beaumont <[email protected]>
1 parent 1fbb42b commit 124119f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/NIOPosix/BaseSocket.swift

-4
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,6 @@ class BaseSocket: BaseSocketProtocol {
353353
/// - throws: An `IOError` if the operation failed.
354354
func bind(to address: SocketAddress) throws {
355355
try self.withUnsafeHandle { fd in
356-
func doBind(ptr: UnsafePointer<sockaddr>, bytes: Int) throws {
357-
try NIOBSDSocket.bind(socket: fd, address: ptr, address_len: socklen_t(bytes))
358-
}
359-
360356
try address.withSockAddr {
361357
try NIOBSDSocket.bind(socket: fd, address: $0, address_len: socklen_t($1))
362358
}

0 commit comments

Comments
 (0)