Skip to content

Commit

Permalink
Remove overwriting empty vector constructor (#24710)
Browse files Browse the repository at this point in the history
This constructor overwrites what was added in #24652. As long as memory
is uninitialized (rather than zeroed) by default, these constructors do
the same thing.

Removing this constructor fixes a method overwritten warning during the
build.
  • Loading branch information
ararslan authored and fredrikekre committed Nov 23, 2017
1 parent d3cab22 commit 4914de4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions base/sysimg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ Array{T}(d::Integer...) where {T} = Array{T}(convert(Tuple{Vararg{Int}}, d))
# dimensionality but not type specified, accepting dims as series of Integers
Vector(m::Integer) = Vector{Any}(Int(m))
Matrix(m::Integer, n::Integer) = Matrix{Any}(Int(m), Int(n))
# empty vector constructor
Vector() = Vector{Any}(0)


include("associative.jl")
Expand Down

0 comments on commit 4914de4

Please sign in to comment.