mirror of
https://github.com/servo/servo.git
synced 2025-07-16 20:03:39 +01:00
Remove unused XHR method
This commit is contained in:
parent
3b98ce0dcc
commit
520f90c2ee
1 changed files with 0 additions and 6 deletions
|
@ -1041,12 +1041,6 @@ impl XMLHttpRequest {
|
||||||
self.response_status.set(Ok(()));
|
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>) {
|
fn dispatch_progress_event(&self, upload: bool, type_: Atom, loaded: u64, total: Option<u64>) {
|
||||||
let global = self.global();
|
let global = self.global();
|
||||||
let progressevent = ProgressEvent::new(global.r(),
|
let progressevent = ProgressEvent::new(global.r(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue