diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index f062eb8cf64..02a6c430421 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -187,17 +187,6 @@ impl Clone for LayoutJS { } } -impl JS { - /// Create a new JS-owned value wrapped from an address known to be a `Node` pointer. - pub unsafe fn from_trusted_node_address(inner: TrustedNodeAddress) -> JS { - let TrustedNodeAddress(addr) = inner; - assert!(!addr.is_null()); - JS { - ptr: NonZero::new(addr as *const Node) - } - } -} - impl LayoutJS { /// Create a new JS-owned value wrapped from an address known to be a `Node` pointer. pub unsafe fn from_trusted_node_address(inner: TrustedNodeAddress) -> LayoutJS {