mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
[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:
parent
7f483c067c
commit
d2bd9691aa
2 changed files with 0 additions and 40 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue