From 32bb4044fd51f5e39e39f9cc21f4e64907ebee69 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 6 Nov 2015 22:38:25 +0100 Subject: [PATCH] Remove unused SharedLayoutContext::constellation_chan. --- components/layout/context.rs | 5 ----- components/layout/layout_task.rs | 1 - 2 files changed, 6 deletions(-) diff --git a/components/layout/context.rs b/components/layout/context.rs index 283074ae3d9..e7e0ab070b8 100644 --- a/components/layout/context.rs +++ b/components/layout/context.rs @@ -16,7 +16,6 @@ use gfx::font_cache_task::FontCacheTask; use gfx::font_context::FontContext; use ipc_channel::ipc::{self, IpcSender}; use msg::compositor_msg::LayerId; -use msg::constellation_msg::ConstellationChan; use net_traits::image::base::Image; use net_traits::image_cache_task::{ImageCacheChan, ImageCacheTask, ImageResponse, ImageState}; use net_traits::image_cache_task::{UsePlaceholder}; @@ -88,9 +87,6 @@ pub struct SharedLayoutContext { /// Screen sized changed? pub screen_size_changed: bool, - /// A channel up to the constellation. - pub constellation_chan: ConstellationChan, - /// Interface to the font cache task. pub font_cache_task: FontCacheTask, @@ -125,7 +121,6 @@ pub struct SharedLayoutContext { // FIXME(#6569) This implementations is unsound: // XXX UNSOUND!!! for image_cache_task -// XXX UNSOUND!!! for constellation_chan // XXX UNSOUND!!! for font_cache_task // XXX UNSOUND!!! for stylist // XXX UNSOUND!!! for new_animations_sender diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 71c6ac48d4d..58e4a6f5639 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -455,7 +455,6 @@ impl LayoutTask { image_cache_sender: Mutex::new(self.image_cache_sender.clone()), viewport_size: rw_data.viewport_size.clone(), screen_size_changed: screen_size_changed, - constellation_chan: rw_data.constellation_chan.clone(), font_cache_task: self.font_cache_task.clone(), canvas_layers_sender: self.canvas_layers_sender.clone(), stylist: &*rw_data.stylist,