diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-03-25 17:43:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-25 17:43:31 -0400 |
commit | d8714281b40f457420608c7e766fe787609c7afb (patch) | |
tree | f034d9515be1fd12471f94e20b2b068b492fe768 /cli/cli_behavior.rs | |
parent | 5ae78eb1de378f04d0b9d54842bcb898053467d6 (diff) |
Resolve callback moved from Behavior to mod_instantiate() (#1999)
This simplifies the Behavior trait and makes it more explicit where the
resolve callback is being made.
Also s/StartupScript/Script
Diffstat (limited to 'cli/cli_behavior.rs')
-rw-r--r-- | cli/cli_behavior.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/cli/cli_behavior.rs b/cli/cli_behavior.rs index a297bdef9..c077d1ad1 100644 --- a/cli/cli_behavior.rs +++ b/cli/cli_behavior.rs @@ -2,7 +2,6 @@ use crate::isolate_state::*; use crate::ops; use deno_core::deno_buf; -use deno_core::deno_mod; use deno_core::Behavior; use deno_core::Op; use deno_core::StartupData; @@ -43,10 +42,6 @@ impl Behavior for CliBehavior { self.startup_data.take() } - fn resolve(&mut self, specifier: &str, referrer: deno_mod) -> deno_mod { - self.state_resolve(specifier, referrer) - } - fn dispatch( &mut self, control: &[u8], |