remove get_rooted() and replace all references to it with references to get()

This commit is contained in:
rohan.prinja 2015-10-29 21:48:39 +09:00
parent 430578355b
commit 4a4f041948
11 changed files with 28 additions and 34 deletions

View file

@ -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());