Remove the unused window field from File.

This commit is contained in:
Ms2ger 2014-07-14 18:04:51 +02:00
parent 91de702edb
commit 5aceb80279

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object}; use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::bindings::codegen::Bindings::FileBinding; use dom::bindings::codegen::Bindings::FileBinding;
use dom::blob::{Blob, BlobType, FileTypeId}; use dom::blob::{Blob, BlobType, FileTypeId};
@ -13,7 +13,6 @@ use servo_util::str::DOMString;
pub struct File { pub struct File {
pub blob: Blob, pub blob: Blob,
pub name: DOMString, pub name: DOMString,
pub window: JS<Window>,
pub type_: BlobType pub type_: BlobType
} }
@ -22,7 +21,6 @@ impl File {
File { File {
blob: Blob::new_inherited(window), blob: Blob::new_inherited(window),
name: name, name: name,
window: JS::from_rooted(window),
type_: FileTypeId type_: FileTypeId
} }
// XXXManishearth Once Blob is able to store data // XXXManishearth Once Blob is able to store data