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 JS { ptr: unsafe { NonZero::new(&*obj) } } } - /// Store an rooted value in this field. This is safe under the - /// assumption that JS 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) { - self.ptr = val.ptr.clone(); - } } impl Deref for JS {