From d8714281b40f457420608c7e766fe787609c7afb Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 25 Mar 2019 17:43:31 -0400 Subject: 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 --- cli/cli_behavior.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'cli/cli_behavior.rs') 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], -- cgit v1.2.3