| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 05f76ce2126e70cfcb5afa93c03123161997f249..d0d351b3004b56b17935d70082b36dd81e4c8ac1 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -2218,29 +2218,6 @@ void Class::RemoveFunction(const Function& function) const {
|
| }
|
|
|
|
|
| -intptr_t Class::FindFunctionIndex(const Function& needle) const {
|
| - Thread* thread = Thread::Current();
|
| - if (EnsureIsFinalized(thread) != Error::null()) {
|
| - return -1;
|
| - }
|
| - REUSABLE_ARRAY_HANDLESCOPE(thread);
|
| - REUSABLE_FUNCTION_HANDLESCOPE(thread);
|
| - Array& funcs = thread->ArrayHandle();
|
| - Function& function = thread->FunctionHandle();
|
| - funcs ^= functions();
|
| - ASSERT(!funcs.IsNull());
|
| - const intptr_t len = funcs.Length();
|
| - for (intptr_t i = 0; i < len; i++) {
|
| - function ^= funcs.At(i);
|
| - if (function.raw() == needle.raw()) {
|
| - return i;
|
| - }
|
| - }
|
| - // No function found.
|
| - return -1;
|
| -}
|
| -
|
| -
|
| RawFunction* Class::FunctionFromIndex(intptr_t idx) const {
|
| const Array& funcs = Array::Handle(functions());
|
| if ((idx < 0) || (idx >= funcs.Length())) {
|
|
|