Merge pull request #2834 from Ms2ger/file-window

Remove the unused window field from File; r=Manishearth
This commit is contained in:
Manish Goregaokar 2014-07-14 22:15:44 +05:30
commit 2d4d9afcda

View file

@ -2,7 +2,7 @@
* 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/. */
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::codegen::Bindings::FileBinding;
use dom::blob::{Blob, BlobType, FileTypeId};
@ -13,7 +13,6 @@ use servo_util::str::DOMString;
pub struct File {
pub blob: Blob,
pub name: DOMString,
pub window: JS<Window>,
pub type_: BlobType
}
@ -22,7 +21,6 @@ impl File {
File {
blob: Blob::new_inherited(window),
name: name,
window: JS::from_rooted(window),
type_: FileTypeId
}
// XXXManishearth Once Blob is able to store data