Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove #if compiler(>=5.5) #161

Merged
merged 1 commit into from
Oct 13, 2022
Merged

Conversation

dnadoba
Copy link
Member

@dnadoba dnadoba commented Oct 13, 2022

Motivation

We only support Swift 5.5.2+.

Modification

Remove all #if swift(>=5.5) conditional compilation blocks.

Result

less branching

@dnadoba dnadoba added the semver/minor Adds new public API. label Oct 13, 2022
Comment on lines -106 to 108
#if swift(>=5.6)
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
extension NIOTSNetworkEvents.BetterPathAvailable: Sendable {}
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This says 5.6 but I think it should have been 5.5. Lets see if CI complains.

@Lukasa Lukasa merged commit 330f4ee into apple:main Oct 13, 2022
@dnadoba dnadoba mentioned this pull request Oct 13, 2022
@dnadoba dnadoba deleted the dn-remove-swift-5.4-support branch October 13, 2022 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants