| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 4e085acfd098c9392909e2bdb1ad67aa83accb72..99d76b835be168e75654333308ffcd899e108aba 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -8307,29 +8307,6 @@ void Script::PrintJSONImpl(JSONStream* stream, bool ref) const {
|
| }
|
|
|
|
|
| -RawLibrary* Script::FindLibrary() const {
|
| - Isolate* isolate = Isolate::Current();
|
| - const GrowableObjectArray& libs = GrowableObjectArray::Handle(
|
| - isolate, isolate->object_store()->libraries());
|
| - Library& lib = Library::Handle();
|
| - Script& script = Script::Handle();
|
| - for (intptr_t i = 0; i < libs.Length(); i++) {
|
| - lib ^= libs.At(i);
|
| - ASSERT(!lib.IsNull());
|
| - const Array& loaded_scripts = Array::Handle(lib.LoadedScripts());
|
| - ASSERT(!loaded_scripts.IsNull());
|
| - for (intptr_t j = 0; j < loaded_scripts.Length(); j++) {
|
| - script ^= loaded_scripts.At(j);
|
| - ASSERT(!script.IsNull());
|
| - if (script.raw() == raw()) {
|
| - return lib.raw();
|
| - }
|
| - }
|
| - }
|
| - return Library::null();
|
| -}
|
| -
|
| -
|
| RawScript* Script::FindByUrl(const String& url) {
|
| Isolate* isolate = Isolate::Current();
|
| const GrowableObjectArray& libs = GrowableObjectArray::Handle(
|
|
|