Skip to content

Commit

Permalink
refactor: Remove depreated Worker::execute_module (#12203)
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Sep 24, 2021
1 parent da25bbf commit 80a9a37
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
11 changes: 0 additions & 11 deletions runtime/web_worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,17 +505,6 @@ impl WebWorker {
}
}

#[deprecated(
since = "0.26.0",
note = "This method had a bug, marking multiple modules loaded as \"main\". Use `execute_main_module`."
)]
pub async fn execute_module(
&mut self,
module_specifier: &ModuleSpecifier,
) -> Result<(), AnyError> {
self.execute_main_module(module_specifier).await
}

pub fn poll_event_loop(
&mut self,
cx: &mut Context,
Expand Down
11 changes: 0 additions & 11 deletions runtime/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,17 +264,6 @@ impl MainWorker {
self.evaluate_module(id).await
}

#[deprecated(
since = "0.26.0",
note = "This method had a bug, marking multiple modules loaded as \"main\". Use `execute_main_module` or `execute_side_module` instead."
)]
pub async fn execute_module(
&mut self,
module_specifier: &ModuleSpecifier,
) -> Result<(), AnyError> {
self.execute_main_module(module_specifier).await
}

fn wait_for_inspector_session(&mut self) {
if self.should_break_on_first_statement {
self
Expand Down

0 comments on commit 80a9a37

Please sign in to comment.