Skip to content

Commit

Permalink
removed redundant eltype definitions for darray and sharedarray
Browse files Browse the repository at this point in the history
  • Loading branch information
amitmurthy committed Feb 26, 2014
1 parent 0dbbaf7 commit cf95ec9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions base/darray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ similar(d::DArray, T)= similar(d, T, size(d))
similar{T}(d::DArray{T}, dims::Dims)= similar(d, T, dims)
similar{T}(d::DArray{T})= similar(d, T, size(d))

eltype{T}(d::DArray{T}) = T

size(d::DArray) = d.dims
procs(d::DArray) = d.pmap

Expand Down
2 changes: 0 additions & 2 deletions base/sharedarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ similar(S::SharedArray, T) = similar(S, T, size(S))
similar(S::SharedArray, dims::Dims) = similar(S, eltype(S), dims)
similar(S::SharedArray) = similar(S, eltype(S), size(S))

eltype(S::SharedArray) = eltype(S.s)

map(f::Callable, S::SharedArray) = (S2 = similar(S); S2[:] = S[:]; map!(f, S2); S2)

reduce(f::Function, S::SharedArray) =
Expand Down

0 comments on commit cf95ec9

Please sign in to comment.