aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/js.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-02-11 21:05:18 +0100
committerMs2ger <ms2ger@gmail.com>2015-02-12 20:59:22 +0100
commit7b1b030f8a35c3bc52ff0eb10d6d0d4e7d9c08d7 (patch)
tree4298fb09dd103b1a92d1eb0ff4fac7909304ee60 /components/script/dom/bindings/js.rs
parentb3f93b25a58eae456b27ea15423feb5181ab9aa1 (diff)
downloadservo-7b1b030f8a35c3bc52ff0eb10d6d0d4e7d9c08d7.tar.gz
servo-7b1b030f8a35c3bc52ff0eb10d6d0d4e7d9c08d7.zip
Remove MutNullableJS::get_inner.
There should be no reason to call this.
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r--components/script/dom/bindings/js.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs
index 2abba36b1e1..a842583cecb 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -390,16 +390,10 @@ impl<T: Reflectable> MutNullableJS<T> {
self.ptr.get().map(Temporary::new)
}
- /// Retrieve a copy of the inner optional `JS<T>`. For use by layout, which
- /// can't use safe types like Temporary.
- pub unsafe fn get_inner(&self) -> Option<JS<T>> {
- self.ptr.get()
- }
-
/// Retrieve a copy of the inner optional `JS<T>` as `LayoutJS<T>`.
/// For use by layout, which can't use safe types like Temporary.
pub unsafe fn get_inner_as_layout(&self) -> Option<LayoutJS<T>> {
- self.get_inner().map(|js| js.to_layout())
+ self.ptr.get().map(|js| js.to_layout())
}
/// Retrieve a copy of the current inner value. If it is `None`, it is