mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
remove get_rooted() and replace all references to it with references to get()
This commit is contained in:
parent
430578355b
commit
4a4f041948
11 changed files with 28 additions and 34 deletions
|
@ -373,12 +373,6 @@ impl<T: Reflectable> MutNullableHeap<JS<T>> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Get a rooted value out of this object
|
||||
pub fn get_rooted(&self) -> Option<Root<T>> {
|
||||
debug_assert!(task_state::get().is_script());
|
||||
self.get()
|
||||
}
|
||||
|
||||
/// Set this `MutNullableHeap` to the given value.
|
||||
pub fn set(&self, val: Option<&T>) {
|
||||
debug_assert!(task_state::get().is_script());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue