diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-06-04 02:27:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-04 02:27:29 -0400 |
commit | faf3a183f3755a9986ec4379abadf3523bd8b3c0 (patch) | |
tree | 258d00740016e0ce10f0bd8d06a5401632dedacd /components/script/script_thread.rs | |
parent | 3a2705f587c9a33f9440412f130a27cc66dcad28 (diff) | |
parent | e64de8d90acba327d4276f5b872d2b6eaa1bde9c (diff) | |
download | servo-faf3a183f3755a9986ec4379abadf3523bd8b3c0.tar.gz servo-faf3a183f3755a9986ec4379abadf3523bd8b3c0.zip |
Auto merge of #23499 - est31:unused_code_removal_3, r=jdm
Remove unused code (3/N)
<!-- Please describe your changes on the following line: -->
Third PR in a series of PRs to remove unused/dead code from servo, powered by an (upcoming) tool of mine. Please take a look and tell me if you want to keep something.
* First PR: #23477
* Second PR: #23498
---
<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)
<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they only remove dead code
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23499)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 3d8d5bb1acc..f284e14dd0c 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -451,20 +451,12 @@ impl Documents { .map(|ref doc| DomRoot::from_ref(&**doc)) } - pub fn is_empty(&self) -> bool { - self.map.is_empty() - } - pub fn find_document(&self, pipeline_id: PipelineId) -> Option<DomRoot<Document>> { self.map .get(&pipeline_id) .map(|doc| DomRoot::from_ref(&**doc)) } - pub fn len(&self) -> usize { - self.map.len() - } - pub fn find_window(&self, pipeline_id: PipelineId) -> Option<DomRoot<Window>> { self.find_document(pipeline_id) .map(|doc| DomRoot::from_ref(doc.window())) @@ -824,13 +816,6 @@ impl ScriptThread { }) } - pub fn invoke_perform_a_microtask_checkpoint() { - SCRIPT_THREAD_ROOT.with(|root| { - let script_thread = unsafe { &*root.get().unwrap() }; - script_thread.perform_a_microtask_checkpoint() - }) - } - pub fn page_headers_available( id: &PipelineId, metadata: Option<Metadata>, |