Skip to content

Commit 9ca03be

Browse files
committed
Remove copy(::SubArray) definition from SparseArrays, fixes #32213.
This method was introduced in #30552, but was unrelated to the rest of the changes, and no-one reviewed or though about the implications.
1 parent 7bdba87 commit 9ca03be

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

stdlib/SparseArrays/src/sparseconvert.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ For other types return A itself.
7676
unwrap(A::Any) = A
7777
unwrap(A::AbstractMatrix) = iswrsparse(A) ? convert(SparseMatrixCSC, A) : convert(Array, A)
7878

79-
import Base.copy
80-
copy(A::SubArray{T,2}) where T = getindex(unwrap(parent(A)), A.indices...)
81-
8279
# For pure sparse matrices and vectors return A.
8380
# For wrapped sparse matrices or vectors convert to SparseMatrixCSC.
8481
# Handle nested wrappers properly.

0 commit comments

Comments
 (0)