[vm] Remove unused Resolver::ResolveStaticAllowPrivate

Change-Id: I31701f73b32371a61f5bf159be61d5ed2806bef8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/137848
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
Alexander Markov 2020-02-29 01:21:30 +00:00 committed by commit-bot@chromium.org
parent 7f483c067c
commit d2bd9691aa
2 changed files with 0 additions and 40 deletions

View file

@ -219,36 +219,4 @@ RawFunction* Resolver::ResolveStatic(const Class& cls,
return function.raw();
}
RawFunction* Resolver::ResolveStaticAllowPrivate(const Class& cls,
const String& function_name,
intptr_t type_args_len,
intptr_t num_arguments,
const Array& argument_names) {
ASSERT(!cls.IsNull());
if (FLAG_trace_resolving) {
THR_Print("ResolveStaticAllowPrivate '%s'\n", function_name.ToCString());
}
const Function& function =
Function::Handle(cls.LookupStaticFunctionAllowPrivate(function_name));
if (function.IsNull() ||
!function.AreValidArguments(NNBDMode::kLegacyLib, type_args_len,
num_arguments, argument_names, NULL)) {
// Return a null function to signal to the upper levels to throw a
// resolution error or maybe throw the error right here.
if (FLAG_trace_resolving) {
String& error_message = String::Handle(String::New("function not found"));
if (!function.IsNull()) {
// Obtain more detailed error message.
function.AreValidArguments(NNBDMode::kLegacyLib, type_args_len,
num_arguments, argument_names,
&error_message);
}
THR_Print("ResolveStaticAllowPrivate error '%s': %s.\n",
function_name.ToCString(), error_message.ToCString());
}
return Function::null();
}
return function.raw();
}
} // namespace dart

View file

@ -60,14 +60,6 @@ class Resolver : public AllStatic {
intptr_t type_args_len,
intptr_t num_arguments,
const Array& argument_names);
// Resolve specified dart static function with specified arity. Resolves both
// public and private functions.
static RawFunction* ResolveStaticAllowPrivate(const Class& cls,
const String& function_name,
intptr_t type_args_len,
intptr_t num_arguments,
const Array& argument_names);
};
} // namespace dart