aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-07-14 17:14:52 +0200
committerMs2ger <ms2ger@gmail.com>2014-07-14 17:14:52 +0200
commitc747df0e59daff12dfa6a7d7560e793d64fa52d4 (patch)
tree7614486184730749a8ed47d85ebb989e4afc5efa
parent7b9cdf4c1e5682bc30e6f939c288936d603744b3 (diff)
downloadservo-c747df0e59daff12dfa6a7d7560e793d64fa52d4.tar.gz
servo-c747df0e59daff12dfa6a7d7560e793d64fa52d4.zip
Remove the unused window field from HTMLCollection.
-rw-r--r--src/components/script/dom/htmlcollection.rs6
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)
}
}