From 736730f2e7363cfe83a8db7b64d3b71cffc3357b Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Thu, 8 Oct 2015 11:33:37 +1000 Subject: [PATCH] Remove unused subpage senders map. --- components/compositing/constellation.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/components/compositing/constellation.rs b/components/compositing/constellation.rs index 0da135022d4..fc9dd951a84 100644 --- a/components/compositing/constellation.rs +++ b/components/compositing/constellation.rs @@ -135,10 +135,6 @@ pub struct Constellation { /// A list of in-process senders to `WebGLPaintTask`s. webgl_paint_tasks: Vec>, - - /// A list of senders that are waiting to be notified whenever a pipeline or subpage ID comes - /// in. - subpage_id_senders: HashMap<(PipelineId, SubpageId), Vec>>, } /// State needed to construct a constellation. @@ -284,7 +280,6 @@ impl Constellation { webdriver: WebDriverData::new(), canvas_paint_tasks: Vec::new(), webgl_paint_tasks: Vec::new(), - subpage_id_senders: HashMap::new(), }; let namespace_id = constellation.next_pipeline_namespace_id(); PipelineNamespace::install(namespace_id); @@ -679,14 +674,6 @@ impl Constellation { self.subpage_map.insert((load_info.containing_pipeline_id, load_info.new_subpage_id), load_info.new_pipeline_id); - // If anyone is waiting to know the pipeline ID, send that information now. - if let Some(subpage_id_senders) = self.subpage_id_senders.remove(&(load_info.containing_pipeline_id, - load_info.new_subpage_id)) { - for subpage_id_sender in subpage_id_senders.into_iter() { - subpage_id_sender.send(load_info.new_pipeline_id).unwrap(); - } - } - self.push_pending_frame(load_info.new_pipeline_id, old_pipeline_id); }