diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-06-17 04:53:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-17 04:53:36 -0500 |
commit | fb9f3273426020691f658f08e4f4b754cc40dcd6 (patch) | |
tree | aa267cdb9c7c3c35aab9e82d9d424903ef925f9a | |
parent | 5a0c98afb2998e7990e1c813f2bc15fe3c191638 (diff) | |
parent | 520f90c2ee8fc99ecb93945b32bdd582223ee83e (diff) | |
download | servo-fb9f3273426020691f658f08e4f4b754cc40dcd6.tar.gz servo-fb9f3273426020691f658f08e4f4b754cc40dcd6.zip |
Auto merge of #11769 - splav:master, r=jdm
Remove unused XHR method
<!-- Please describe your changes on the following line: -->
Remove unused XHR method.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #11760 (github issue number if applicable).
<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it is a cleanup
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11769)
<!-- Reviewable:end -->
-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(), |