mirror of
https://github.com/servo/servo.git
synced 2025-06-09 09:03:23 +00:00
Remove the unused PipelineExitType field from layout_interface::Msg::ExitNow.
This commit is contained in:
parent
5cd250602f
commit
ad33d920e7
3 changed files with 9 additions and 9 deletions
|
@ -1455,7 +1455,7 @@ impl ScriptTask {
|
|||
if chan.send(layout_interface::Msg::PrepareToExit(response_chan)).is_ok() {
|
||||
debug!("shutting down layout for page {:?}", id);
|
||||
response_port.recv().unwrap();
|
||||
chan.send(layout_interface::Msg::ExitNow(exit_type)).ok();
|
||||
chan.send(layout_interface::Msg::ExitNow).ok();
|
||||
}
|
||||
|
||||
let has_pending_loads = self.incomplete_loads.borrow().len() > 0;
|
||||
|
@ -1970,7 +1970,7 @@ impl Drop for ScriptTask {
|
|||
}
|
||||
|
||||
/// Shuts down layout for the given page tree.
|
||||
fn shut_down_layout(page_tree: &Rc<Page>, exit_type: PipelineExitType) {
|
||||
fn shut_down_layout(page_tree: &Rc<Page>, _: PipelineExitType) {
|
||||
let mut channels = vec!();
|
||||
|
||||
for page in page_tree.iter() {
|
||||
|
@ -1995,7 +1995,7 @@ fn shut_down_layout(page_tree: &Rc<Page>, exit_type: PipelineExitType) {
|
|||
|
||||
// Destroy the layout task. If there were node leaks, layout will now crash safely.
|
||||
for chan in channels {
|
||||
chan.send(layout_interface::Msg::ExitNow(exit_type)).ok();
|
||||
chan.send(layout_interface::Msg::ExitNow).ok();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue