diff options
author | Alexandrov Sergey <splavgm@gmail.com> | 2016-06-17 10:11:44 +0300 |
---|---|---|
committer | Alexandrov Sergey <splavgm@gmail.com> | 2016-06-17 10:11:44 +0300 |
commit | 520f90c2ee8fc99ecb93945b32bdd582223ee83e (patch) | |
tree | df82ded5c525066fd61a14f9f265916b7e64896e /components/script/dom/xmlhttprequest.rs | |
parent | 3b98ce0dcce8e3e0b411368fc0a0b1043d91377a (diff) | |
download | servo-520f90c2ee8fc99ecb93945b32bdd582223ee83e.tar.gz servo-520f90c2ee8fc99ecb93945b32bdd582223ee83e.zip |
Remove unused XHR method
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index 785a5928c9f..edae06fe66c 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -1041,12 +1041,6 @@ impl XMLHttpRequest { self.response_status.set(Ok(())); } - fn insert_trusted_header(&self, name: String, value: String) { - // Insert a header without checking spec-compliance - // Use for hardcoded headers - self.request_headers.borrow_mut().set_raw(name, vec![value.into_bytes()]); - } - fn dispatch_progress_event(&self, upload: bool, type_: Atom, loaded: u64, total: Option<u64>) { let global = self.global(); let progressevent = ProgressEvent::new(global.r(), |