We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fbb42b commit 124119fCopy full SHA for 124119f
Sources/NIOPosix/BaseSocket.swift
@@ -353,10 +353,6 @@ class BaseSocket: BaseSocketProtocol {
353
/// - throws: An `IOError` if the operation failed.
354
func bind(to address: SocketAddress) throws {
355
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
-
360
try address.withSockAddr {
361
try NIOBSDSocket.bind(socket: fd, address: $0, address_len: socklen_t($1))
362
}
0 commit comments