Skip to content

Commit 770b144

Browse files
authored
Remove overwritten method of OffsetArray (JuliaLang#56414)
This is overwritten three definitions later in `Base.reshape(A::OffsetArray, inds::Colon)`. Should remove warnings I saw when testing a package that uses it.
1 parent 4393f8c commit 770b144

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/testhelpers/OffsetArrays.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ Base.reshape(A::OffsetArray, inds::Tuple{Union{Integer,Base.OneTo},Vararg{Union{
560560
Base.reshape(A::OffsetArray, inds::Dims) = _reshape_nov(A, inds)
561561
Base.reshape(A::OffsetVector, ::Colon) = A
562562
Base.reshape(A::OffsetVector, ::Tuple{Colon}) = A
563-
Base.reshape(A::OffsetArray, ::Colon) = reshape(A, (Colon(),))
564563
Base.reshape(A::OffsetArray, inds::Union{Int,Colon}...) = reshape(A, inds)
565564
Base.reshape(A::OffsetArray, inds::Tuple{Vararg{Union{Int,Colon}}}) = _reshape_nov(A, inds)
566565
# The following two additional methods for Colon are added to resolve method ambiguities to

0 commit comments

Comments
 (0)