From e44ee70faff95763185a64544907a88466fa94a8 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 28 Jan 2015 13:37:18 +0530 Subject: [PATCH] Remove some old impls --- components/script/dom/bindings/js.rs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index 637ee079a4d..063c934580d 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -177,10 +177,9 @@ impl JS { } } -#[old_impl_check] -impl, U: Reflectable> JS { +impl JS { /// Create a `JS` from any JS-managed pointer. - pub fn from_rooted(root: T) -> JS { + pub fn from_rooted>(root: T) -> JS { unsafe { root.get_js() } @@ -248,10 +247,9 @@ pub struct MutNullableJS { ptr: Cell>> } -#[old_impl_check] -impl, U: Reflectable> MutNullableJS { +impl MutNullableJS { /// Create a new `MutNullableJS` - pub fn new(initial: Option) -> MutNullableJS { + pub fn new>(initial: Option) -> MutNullableJS { MutNullableJS { ptr: Cell::new(initial.map(|initial| { unsafe { initial.get_js() } @@ -328,16 +326,15 @@ impl JS { } } -#[old_impl_check] -impl JS { +impl JS { /// Return `self` as a `JS` of another type. //XXXjdm It would be lovely if this could be private. - pub unsafe fn transmute(self) -> JS { + pub unsafe fn transmute(self) -> JS { mem::transmute(self) } /// Return `self` as a `JS` of another type. - pub unsafe fn transmute_copy(&self) -> JS { + pub unsafe fn transmute_copy(&self) -> JS { mem::transmute_copy(self) } }