Auto merge of #8250 - wenderen:8246-remove-get-rooted, r=Ms2ger

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

…to get()

for #8246

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8250)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-10-30 06:37:44 +05:30
commit 00b60b9386
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());