Skip to content

Remove #if compiler(>=5.5) #641

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

Merged
merged 2 commits into from
Oct 12, 2022
Merged

Conversation

dnadoba
Copy link
Collaborator

@dnadoba dnadoba commented Oct 12, 2022

Motivation

We only support Swift 5.5.2+.

Modification

Remove a lot of our #if swift(>=5.5) conditional compilation blocks.

Result

less branching

@dnadoba dnadoba added the semver/none No version bump required. label Oct 12, 2022
@@ -567,7 +545,7 @@ actor SharedIterator<Wrapped: AsyncSequence> where Wrapped.Element: Sendable {

/// non fail-able promise that only supports one observer
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
fileprivate actor Promise<Value> {
private actor Promise<Value> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The change from fileprivate to private is the result of running SwiftFormat

@Lukasa Lukasa merged commit 0bdc425 into swift-server:main Oct 12, 2022
@dnadoba dnadoba deleted the dn-drop-swift5.5 branch October 12, 2022 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants