Remove unused JS::assign.

This commit is contained in:
Ms2ger 2015-10-21 12:17:50 +02:00
parent 7fb3c51bbb
commit 4e8033b739

View file

@ -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> {