From 7b1b030f8a35c3bc52ff0eb10d6d0d4e7d9c08d7 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 11 Feb 2015 21:05:18 +0100 Subject: [PATCH] Remove MutNullableJS::get_inner. There should be no reason to call this. --- components/script/dom/bindings/js.rs | 8 +------- 1 file changed, 1 insertion(+), 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 MutNullableJS { self.ptr.get().map(Temporary::new) } - /// Retrieve a copy of the inner optional `JS`. For use by layout, which - /// can't use safe types like Temporary. - pub unsafe fn get_inner(&self) -> Option> { - self.ptr.get() - } - /// Retrieve a copy of the inner optional `JS` as `LayoutJS`. /// For use by layout, which can't use safe types like Temporary. pub unsafe fn get_inner_as_layout(&self) -> Option> { - 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