Remove the unused window field from HTMLCollection.

This commit is contained in:
Ms2ger 2014-07-14 17:14:52 +02:00
parent 7b9cdf4c1e
commit c747df0e59

View file

@ -34,20 +34,18 @@ pub enum CollectionTypeId {
pub struct HTMLCollection { pub struct HTMLCollection {
collection: CollectionTypeId, collection: CollectionTypeId,
reflector_: Reflector, reflector_: Reflector,
window: JS<Window>,
} }
impl HTMLCollection { impl HTMLCollection {
pub fn new_inherited(window: &JSRef<Window>, collection: CollectionTypeId) -> HTMLCollection { pub fn new_inherited(collection: CollectionTypeId) -> HTMLCollection {
HTMLCollection { HTMLCollection {
collection: collection, collection: collection,
reflector_: Reflector::new(), reflector_: Reflector::new(),
window: JS::from_rooted(window),
} }
} }
pub fn new(window: &JSRef<Window>, collection: CollectionTypeId) -> Temporary<HTMLCollection> { 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) window, HTMLCollectionBinding::Wrap)
} }
} }