From 995d022bb9e3b381f36f37995f16562dd6c5ddf0 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 5 Nov 2015 15:46:44 +0100 Subject: [PATCH] Remove the unused PipelineExitType from LayoutToPaintMsg::Exit. --- components/gfx/paint_task.rs | 4 ++-- components/layout/layout_task.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/gfx/paint_task.rs b/components/gfx/paint_task.rs index 4b64bde4dd9..f88d0099559 100644 --- a/components/gfx/paint_task.rs +++ b/components/gfx/paint_task.rs @@ -197,7 +197,7 @@ pub enum Msg { pub enum LayoutToPaintMsg { PaintInit(Epoch, PaintLayer), CanvasLayer(LayerId, IpcSender), - Exit(IpcSender<()>, PipelineExitType), + Exit(IpcSender<()>), } pub enum ChromeToPaintMsg { @@ -382,7 +382,7 @@ impl PaintTask where C: PaintListener + Send + 'static { // FIXME(njn): should eventually measure the paint task. channel.send(Vec::new()) } - Msg::FromLayout(LayoutToPaintMsg::Exit(ref response_channel, _)) => { + Msg::FromLayout(LayoutToPaintMsg::Exit(ref response_channel)) => { // Ask the compositor to remove any layers it is holding for this paint task. // FIXME(mrobinson): This can probably move back to the constellation now. self.compositor.notify_paint_task_exiting(self.id); diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 97ffc67f8d2..8000c431734 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -730,7 +730,7 @@ impl LayoutTask { /// crash. fn exit_now<'a>(&'a self, possibly_locked_rw_data: &mut Option>, - exit_type: PipelineExitType) { + _: PipelineExitType) { { let mut rw_data = self.lock_rw_data(possibly_locked_rw_data); if let Some(ref mut traversal) = (&mut *rw_data).parallel_traversal { @@ -740,7 +740,7 @@ impl LayoutTask { } let (response_chan, response_port) = ipc::channel().unwrap(); - self.paint_chan.send(LayoutToPaintMsg::Exit(response_chan, exit_type)).unwrap(); + self.paint_chan.send(LayoutToPaintMsg::Exit(response_chan)).unwrap(); response_port.recv().unwrap() }