Skip to content

Commit 768dc22

Browse files
committed
Remove unnecessary failsafe
This is no longer needed -- the comment is from when I only had restrict_indices partially implemented
1 parent be6a31c commit 768dc22

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/DistributedArrays.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -697,12 +697,6 @@ function Base.setindex!(a::Array, s::SubDArray,
697697
n = length(I)
698698
d = s.parent
699699
J = Base.decolon(d, s.indexes...)
700-
if length(J) < n
701-
# TODO: this failsafe only works sometimes; the proper solution is to
702-
# implement `restrict_indices` to merge the indices above.
703-
a[I...] = convert(Array,s)
704-
return a
705-
end
706700
@sync for i = 1:length(d.pids)
707701
K_c = d.indexes[i]
708702
K = map(intersect, J, K_c)

0 commit comments

Comments
 (0)