aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/js.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r--components/script/dom/bindings/js.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs
index 1ef1d93a86d..cc900873f36 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -87,13 +87,6 @@ impl<T: Reflectable> JS<T> {
ptr: unsafe { NonZero::new(&*obj) }
}
}
- /// Store an rooted value in this field. This is safe under the
- /// assumption that JS<T> values are only used as fields in DOM types that
- /// are reachable in the GC graph, so this unrooted value becomes
- /// transitively rooted for the lifetime of its new owner.
- pub fn assign(&mut self, val: Root<T>) {
- self.ptr = val.ptr.clone();
- }
}
impl<T: Reflectable> Deref for JS<T> {