Index: sky/engine/core/app/AbstractModule.cpp |
diff --git a/sky/engine/core/app/AbstractModule.cpp b/sky/engine/core/app/AbstractModule.cpp |
index fccb59bf2216a456a4b555a5018f6ad3b664d239..3cd17cf515565793e5c7b103edb8e843b2adce52 100644 |
--- a/sky/engine/core/app/AbstractModule.cpp |
+++ b/sky/engine/core/app/AbstractModule.cpp |
@@ -26,22 +26,4 @@ ExecutionContext* AbstractModule::executionContext() const { |
return ContextLifecycleObserver::executionContext(); |
} |
-ScriptPromise AbstractModule::import(ScriptState* script_state, |
- const String& url_string) { |
- KURL url = document()->completeURL(url_string); |
- RefPtr<ScriptPromiseResolver> resolver = |
- ScriptPromiseResolver::create(script_state); |
- OwnPtr<ModuleLoader> loader = |
- adoptPtr(new ModuleLoader(this, GetApplication(), url)); |
- loaders_.set(loader.release(), resolver); |
- return resolver->promise(); |
-} |
- |
-void AbstractModule::OnModuleLoadComplete(ModuleLoader* loader, |
- Module* module) { |
- RefPtr<ScriptPromiseResolver> resolver = loaders_.take(loader); |
- ScriptState::Scope scope(resolver->scriptState()); |
- resolver->resolve(module->exports(resolver->scriptState()).v8Value()); |
-} |
- |
} // namespace blink |