From fafc0a4ee38d401aab2ac2027cc2b75c1d296faa Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com> Date: Sun, 20 Sep 2020 07:55:43 +0900 Subject: [PATCH] compiler: rm dead code (#37660) --- base/compiler/inferenceresult.jl | 2 -- base/compiler/inferencestate.jl | 4 ---- 2 files changed, 6 deletions(-) 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)