Auto merge of #8124 - Ms2ger:js-assign, r=saneyuki

Remove unused JS::assign.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8124)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-10-21 05:15:15 -06:00
commit 20ea0f4755

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