RigidArray, UniqueArray: Move remaining deprecations to dedicated file

This commit is contained in:
Karoy Lorentey committed 2026-02-05 16:46:14 -08:00
1 parent e6d6731124
commit b9fd3ed56e
4 files changed
+74 -75

No files matched your search

@@ -302,31 +302,5 @@ extension UniqueArray {
public func clone(capacity: Int) -> Self {
UniqueArray(consuming: _storage.clone(capacity: capacity))
}
/// Copy the contents of this array into a newly allocated unique array
/// instance with just enough capacity to hold all its elements.
///
/// - Complexity: O(`count`)
@available(*, deprecated, renamed: "clone()")
@inlinable
public func copy() -> Self {
self.clone()
}
/// Copy the contents of this array into a newly allocated unique array
/// instance with the specified capacity.
///
/// - Parameter capacity: The desired capacity of the resulting unique array.
/// `capacity` must be greater than or equal to `count`.
///
/// - Complexity: O(`count`)
@available(*, deprecated, renamed: "clone(capacity:)")
@inlinable
public func copy(capacity: Int) -> Self {
clone(capacity: capacity)
}
}
#endif