aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/root.rs
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2019-06-02 07:10:40 +0200
committerest31 <MTest31@outlook.com>2019-06-02 07:12:26 +0200
commit8b6ed3d1823876fa7e3c5ff6b1a9036aa22a72f4 (patch)
treef52105b50b51f3d32eaec904369f0b24bee62290 /components/script/dom/bindings/root.rs
parent8dc7a25893cbe9a2c958966618d28757201899b6 (diff)
downloadservo-8b6ed3d1823876fa7e3c5ff6b1a9036aa22a72f4.tar.gz
servo-8b6ed3d1823876fa7e3c5ff6b1a9036aa22a72f4.zip
Remove unused code from script* crates
Diffstat (limited to 'components/script/dom/bindings/root.rs')
-rw-r--r--components/script/dom/bindings/root.rs8
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.