Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Sources/TSCUtility/Netrc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@ extension AuthorizationProviding {
}
}

#if os(Windows)
// FIXME: - add support for Windows when regex function available
#endif

#if os(Linux)
// FIXME: - add support for Linux when regex function available
#endif

#if os(macOS)
/*
Netrc feature depends upon `NSTextCheckingResult.range(withName name: String) -> NSRange`,
which is only available in macOS 10.13+ at this time.
Expand Down Expand Up @@ -168,4 +159,3 @@ fileprivate enum RegexUtil {
return #"\s*\#(string)\s+(?<\#(prefix + string)>\S++)"#
}
}
#endif
3 changes: 1 addition & 2 deletions Tests/TSCUtilityTests/NetrcTests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import XCTest
import TSCUtility

#if os(macOS)
@available(macOS 10.13, *)
/// Netrc feature depends upon `NSTextCheckingResult.range(withName name: String) -> NSRange`,
/// which is only available in macOS 10.13+ at this time.
Expand Down Expand Up @@ -445,4 +444,4 @@ class NetrcTests: XCTestCase {
XCTAssertEqual(netrc.machines[1].password, "sunshine4ever")
}
}
#endif