diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index 3b74bd65194..ee2bf53e238 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -395,12 +395,6 @@ impl LayoutJS { } 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 { - mem::transmute(self) - } - /// Return `self` as a `JS` of another type. pub unsafe fn transmute_copy(&self) -> JS { mem::transmute_copy(self)