From 4e8033b7390124fba597a6bc2f25d929949c67fe Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 21 Oct 2015 12:17:50 +0200 Subject: [PATCH] Remove unused JS::assign. --- components/script/dom/bindings/js.rs | 7 ------- 1 file changed, 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 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 {