Skip to content

Commit 51612cd

Browse files
committed
Remove _partitioned and use it inline (since it’s no longer used by the Collection implementation
1 parent 7eee0ce commit 51612cd

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Sources/Algorithms/Partition.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,6 @@ extension Sequence {
240240
@inlinable
241241
public func partitioned(
242242
_ belongsInSecondCollection: (Element) throws -> Bool
243-
) rethrows -> ([Element], [Element]) {
244-
return try _partitioned(belongsInSecondCollection)
245-
}
246-
247-
@inlinable
248-
internal func _partitioned(
249-
_ belongsInSecondCollection: (Element) throws -> Bool
250243
) rethrows -> ([Element], [Element]) {
251244
var lhs = Array<Element>()
252245
var rhs = Array<Element>()

0 commit comments

Comments
 (0)