diff --git a/base/compiler/inferenceresult.jl b/base/compiler/inferenceresult.jl index 89176b54ec93b..46feaacdea636 100644 --- a/base/compiler/inferenceresult.jl +++ b/base/compiler/inferenceresult.jl @@ -1,7 +1,5 @@ # This file is a part of Julia. License is MIT: https://julialang.org/license -const EMPTY_VECTOR = Vector{Any}() - function is_argtype_match(@nospecialize(given_argtype), @nospecialize(cache_argtype), overridden_by_const::Bool) diff --git a/base/compiler/inferencestate.jl b/base/compiler/inferencestate.jl index 56b766592787e..2d5fce04c0454 100644 --- a/base/compiler/inferencestate.jl +++ b/base/compiler/inferencestate.jl @@ -283,10 +283,6 @@ function poison_callstack(infstate::InferenceState, topmost::InferenceState, poi end end -function is_specializable_vararg_slot(@nospecialize(arg), nargs::Int, vargs::Vector{Any}) - return (isa(arg, Slot) && slot_id(arg) == nargs && !isempty(vargs)) -end - function print_callstack(sv::InferenceState) while sv !== nothing print(sv.linfo)