| Index: runtime/vm/compiler.cc
|
| diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
|
| index 207e0afcc7f7eeaa0516e4fbaeafd85b41609329..124239341455cf53dedd91ca14c4ffd65e18903d 100644
|
| --- a/runtime/vm/compiler.cc
|
| +++ b/runtime/vm/compiler.cc
|
| @@ -1390,24 +1390,6 @@ RawError* Compiler::CompileAllFunctions(const Class& cls) {
|
| func.ClearCode();
|
| }
|
| }
|
| -
|
| - // Inner functions get added to the closures array. As part of compilation
|
| - // more closures can be added to the end of the array. Compile all the
|
| - // closures until we have reached the end of the "worklist".
|
| - const GrowableObjectArray& closures =
|
| - GrowableObjectArray::Handle(zone,
|
| - Isolate::Current()->object_store()->closure_functions());
|
| - for (int i = 0; i < closures.Length(); i++) {
|
| - func ^= closures.At(i);
|
| - if ((func.Owner() == cls.raw()) && !func.HasCode()) {
|
| - error = CompileFunction(thread, func);
|
| - if (!error.IsNull()) {
|
| - return error.raw();
|
| - }
|
| - func.ClearICDataArray();
|
| - func.ClearCode();
|
| - }
|
| - }
|
| return error.raw();
|
| }
|
|
|
|
|