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/dom/bindings/root.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/dom/bindings/root.rs')
-rw-r--r-- | components/script/dom/bindings/root.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/script/dom/bindings/root.rs b/components/script/dom/bindings/root.rs index 940e0700b85..228015b1275 100644 --- a/components/script/dom/bindings/root.rs +++ b/components/script/dom/bindings/root.rs @@ -671,14 +671,6 @@ impl<T: DomObject> LayoutDom<T> { debug_assert!(thread_state::get().is_layout()); self.ptr.as_ptr() } - - /// Returns a reference to the interior of this JS object. This method is - /// safe to call because it originates from the layout thread, and it cannot - /// mutate DOM nodes. - pub fn get_for_script(&self) -> &T { - debug_assert!(thread_state::get().is_script()); - unsafe { &*self.ptr.as_ptr() } - } } /// Helper trait for safer manipulations of `Option<Heap<T>>` values. |