Skip to content

Commit

Permalink
Remove unused XHR method
Browse files Browse the repository at this point in the history
  • Loading branch information
splav committed Jun 17, 2016
1 parent 3b98ce0 commit 520f90c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions components/script/dom/xmlhttprequest.rs
Expand Up @@ -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(),
Expand Down

0 comments on commit 520f90c

Please sign in to comment.