Skip to content

Commit 2389007

Browse files
committed
remove Base.setindex methods
1 parent 1fb77f5 commit 2389007

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/ArrayInterfaceCore/src/ArrayInterfaceCore.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,6 @@ function Base.setindex(x::AbstractArray, v, i...)
121121
return _x
122122
end
123123

124-
function Base.setindex(x::AbstractVector, v, i::Int)
125-
n = length(x)
126-
x .* (i .!== 1:n) .+ v .* (i .== 1:n)
127-
end
128-
129-
function Base.setindex(x::AbstractMatrix, v, i::Int, j::Int)
130-
n, m = Base.size(x)
131-
x .* (i .!== 1:n) .* (j .!== i:m)' .+ v .* (i .== 1:n) .* (j .== i:m)'
132-
end
133-
134124
"""
135125
can_setindex(::Type{T}) -> Bool
136126

0 commit comments

Comments
 (0)