diff options
| author | Gurwinder S <vargwin@gmail.com> | 2019-06-12 01:39:31 +0530 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-11 16:09:31 -0400 |
| commit | 7fc3d5ed8bef7373b96e4436dee8c68bec383184 (patch) | |
| tree | 505c4e040c61d0f303a8cdd5618df19eaafedafe | |
| parent | 912e4f717785e2f5266d749c54a289227523db12 (diff) | |
Removed unused method and update docs (#2499)
| -rw-r--r-- | cli/state.rs | 11 | ||||
| -rw-r--r-- | cli/worker.rs | 4 |
2 files changed, 2 insertions, 13 deletions
diff --git a/cli/state.rs b/cli/state.rs index 07fb8189b..bb284038c 100644 --- a/cli/state.rs +++ b/cli/state.rs @@ -13,7 +13,6 @@ use crate::permissions::DenoPermissions; use crate::progress::Progress; use crate::resources; use crate::resources::ResourceId; -use crate::tokio_util; use crate::worker::resolve_module_spec; use crate::worker::Worker; use deno::Buf; @@ -154,16 +153,6 @@ pub fn fetch_module_meta_data_and_maybe_compile_async( }) } -pub fn fetch_module_meta_data_and_maybe_compile( - state: &ThreadSafeState, - specifier: &str, - referrer: &str, -) -> Result<ModuleMetaData, DenoError> { - tokio_util::block_on(fetch_module_meta_data_and_maybe_compile_async( - state, specifier, referrer, - )) -} - impl Loader for ThreadSafeState { type Error = DenoError; diff --git a/cli/worker.rs b/cli/worker.rs index aff461a94..f856ca0c0 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -55,7 +55,7 @@ impl Worker { isolate.execute(js_filename, js_source) } - /// Consumes worker. Executes the provided JavaScript module. + /// Executes the provided JavaScript module. pub fn execute_mod_async( &mut self, js_url: &Url, @@ -94,7 +94,7 @@ impl Worker { }) } - /// Consumes worker. Executes the provided JavaScript module. + /// Executes the provided JavaScript module. pub fn execute_mod( &mut self, js_url: &Url, |
