From c747df0e59daff12dfa6a7d7560e793d64fa52d4 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 14 Jul 2014 17:14:52 +0200 Subject: [PATCH] Remove the unused window field from HTMLCollection. --- src/components/script/dom/htmlcollection.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/script/dom/htmlcollection.rs b/src/components/script/dom/htmlcollection.rs index bada5da4fe5..2438d745518 100644 --- a/src/components/script/dom/htmlcollection.rs +++ b/src/components/script/dom/htmlcollection.rs @@ -34,20 +34,18 @@ pub enum CollectionTypeId { pub struct HTMLCollection { collection: CollectionTypeId, reflector_: Reflector, - window: JS, } impl HTMLCollection { - pub fn new_inherited(window: &JSRef, collection: CollectionTypeId) -> HTMLCollection { + pub fn new_inherited(collection: CollectionTypeId) -> HTMLCollection { HTMLCollection { collection: collection, reflector_: Reflector::new(), - window: JS::from_rooted(window), } } pub fn new(window: &JSRef, collection: CollectionTypeId) -> Temporary { - reflect_dom_object(box HTMLCollection::new_inherited(window, collection), + reflect_dom_object(box HTMLCollection::new_inherited(collection), window, HTMLCollectionBinding::Wrap) } }