Skip to content

Commit

Permalink
delete unnecessary getindex method
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Apr 10, 2023
1 parent f48194c commit f65f665
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions base/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -453,17 +453,6 @@ function getindex(::Type{T}, vals...) where T
return a
end

# safe version
function getindex(::Type{T}, vals::T...) where T
@inline
@_effect_free_terminates_locally_meta
a = Vector{T}(undef, length(vals))
@_safeindex for i in 1:length(vals)
a[i] = vals[i]
end
return a
end

function getindex(::Type{Any}, @nospecialize vals...)
@_effect_free_terminates_locally_meta
a = Vector{Any}(undef, length(vals))
Expand Down

0 comments on commit f65f665

Please sign in to comment.