aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/file.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-08-08 23:46:29 +0530
committerManish Goregaokar <manishsmail@gmail.com>2014-08-09 01:04:12 +0530
commitdeed48a759e3fea529fbf779cdb38bf2e9eaeea8 (patch)
treeccea34457e42bd07993d0e5bd4903cf5600fb826 /src/components/script/dom/file.rs
parent70e70fd1d9da87bc0a832734b137f2c326641c4e (diff)
downloadservo-deed48a759e3fea529fbf779cdb38bf2e9eaeea8.tar.gz
servo-deed48a759e3fea529fbf779cdb38bf2e9eaeea8.zip
Remove unused windows/globals
Diffstat (limited to 'src/components/script/dom/file.rs')
-rw-r--r--src/components/script/dom/file.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/file.rs b/src/components/script/dom/file.rs
index 765ab731228..c4c07e03399 100644
--- a/src/components/script/dom/file.rs
+++ b/src/components/script/dom/file.rs
@@ -18,9 +18,9 @@ pub struct File {
}
impl File {
- pub fn new_inherited(global: &GlobalRef, _file_bits: &JSRef<Blob>, name: DOMString) -> File {
+ pub fn new_inherited(_file_bits: &JSRef<Blob>, name: DOMString) -> File {
File {
- blob: Blob::new_inherited(global),
+ blob: Blob::new_inherited(),
name: name,
type_: FileTypeId
}
@@ -29,7 +29,7 @@ impl File {
}
pub fn new(global: &GlobalRef, file_bits: &JSRef<Blob>, name: DOMString) -> Temporary<File> {
- reflect_dom_object(box File::new_inherited(global, file_bits, name),
+ reflect_dom_object(box File::new_inherited(file_bits, name),
global,
FileBinding::Wrap)
}