diff --git a/src/variable.jl b/src/variable.jl index f4bc9e2a..31384e44 100644 --- a/src/variable.jl +++ b/src/variable.jl @@ -461,13 +461,6 @@ function Base.setindex!(v::Variable,data,indexes::Union{Int,Colon,UnitRange{Int} data = fill(data,length.(ind)) end - # check if this is necessary - if ndims(data) == 1 && size(data,1) == 1 - data = fill(data[1],length.(ind)) - end - - #@show data - # return data return v[ind...] = data end