From 1c11bd09dfc64b2aab5f47c12c9c3cb1f6c211d8 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 6 Nov 2015 21:41:04 +0100 Subject: [PATCH] Remove unused SharedLayoutContext::layout_chan. --- components/layout/context.rs | 6 +----- components/layout/layout_task.rs | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/components/layout/context.rs b/components/layout/context.rs index f3db3d80a01..66c919e7e44 100644 --- a/components/layout/context.rs +++ b/components/layout/context.rs @@ -20,7 +20,7 @@ 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}; -use script::layout_interface::{Animation, LayoutChan, ReflowGoal}; +use script::layout_interface::{Animation, ReflowGoal}; use std::cell::{RefCell, RefMut}; use std::collections::HashMap; use std::collections::hash_state::DefaultState; @@ -91,9 +91,6 @@ pub struct SharedLayoutContext { /// A channel up to the constellation. pub constellation_chan: ConstellationChan, - /// A channel up to the layout task. - pub layout_chan: LayoutChan, - /// Interface to the font cache task. pub font_cache_task: FontCacheTask, @@ -130,7 +127,6 @@ pub struct SharedLayoutContext { // XXX UNSOUND!!! for image_cache_task // XXX UNSOUND!!! for image_cache_sender // XXX UNSOUND!!! for constellation_chan -// XXX UNSOUND!!! for layout_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 b72bdbb23bc..73393b2894f 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -456,7 +456,6 @@ impl LayoutTask { viewport_size: rw_data.viewport_size.clone(), screen_size_changed: screen_size_changed, constellation_chan: rw_data.constellation_chan.clone(), - layout_chan: self.chan.clone(), font_cache_task: self.font_cache_task.clone(), canvas_layers_sender: self.canvas_layers_sender.clone(), stylist: &*rw_data.stylist,