diff --git a/Sources/TSCUtility/Netrc.swift b/Sources/TSCUtility/Netrc.swift index 850b941c..88750266 100644 --- a/Sources/TSCUtility/Netrc.swift +++ b/Sources/TSCUtility/Netrc.swift @@ -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. @@ -168,4 +159,3 @@ fileprivate enum RegexUtil { return #"\s*\#(string)\s+(?<\#(prefix + string)>\S++)"# } } -#endif diff --git a/Tests/TSCUtilityTests/NetrcTests.swift b/Tests/TSCUtilityTests/NetrcTests.swift index aa9d89a4..4b31fbbf 100644 --- a/Tests/TSCUtilityTests/NetrcTests.swift +++ b/Tests/TSCUtilityTests/NetrcTests.swift @@ -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. @@ -445,4 +444,4 @@ class NetrcTests: XCTestCase { XCTAssertEqual(netrc.machines[1].password, "sunshine4ever") } } -#endif +