mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove unused JS::assign.
This commit is contained in:
parent
7fb3c51bbb
commit
4e8033b739
1 changed files with 0 additions and 7 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue