Skip to content

Commit 843a33f

Browse files
authored
Merge pull request #14804 from moiseev/no-weird-overload-5
[5.0][stdlib] Remove the unnecessary compactMap overload
2 parents 5f19a23 + 0b91523 commit 843a33f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

stdlib/public/core/StringRangeReplaceableCollection.swift.gyb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -441,13 +441,6 @@ extension Sequence {
441441
}
442442

443443
extension Collection {
444-
@_inlineable // FIXME(sil-serialize-all)
445-
public func compactMap(
446-
_ transform: (Element) throws -> String?
447-
) rethrows -> [String] {
448-
return try _compactMap(transform)
449-
}
450-
451444
@available(swift, deprecated: 4.1, renamed: "compactMap(_:)",
452445
message: "Please use compactMap(_:) for the case where closure returns an optional value")
453446
@inline(__always)

0 commit comments

Comments
 (0)