diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-07-14 17:14:52 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-07-14 17:14:52 +0200 |
commit | c747df0e59daff12dfa6a7d7560e793d64fa52d4 (patch) | |
tree | 7614486184730749a8ed47d85ebb989e4afc5efa | |
parent | 7b9cdf4c1e5682bc30e6f939c288936d603744b3 (diff) | |
download | servo-c747df0e59daff12dfa6a7d7560e793d64fa52d4.tar.gz servo-c747df0e59daff12dfa6a7d7560e793d64fa52d4.zip |
Remove the unused window field from HTMLCollection.
-rw-r--r-- | src/components/script/dom/htmlcollection.rs | 6 |
1 files 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<Window>, } impl HTMLCollection { - pub fn new_inherited(window: &JSRef<Window>, 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<Window>, collection: CollectionTypeId) -> Temporary<HTMLCollection> { - reflect_dom_object(box HTMLCollection::new_inherited(window, collection), + reflect_dom_object(box HTMLCollection::new_inherited(collection), window, HTMLCollectionBinding::Wrap) } } |