diff options
-rw-r--r-- | src/components/script/dom/bindings/js.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/components/script/dom/bindings/js.rs b/src/components/script/dom/bindings/js.rs index ae4fd2c1a67..b83115e289d 100644 --- a/src/components/script/dom/bindings/js.rs +++ b/src/components/script/dom/bindings/js.rs @@ -388,8 +388,6 @@ pub struct Root<'a, 'b, T> { root_list: &'a RootCollection, /// Reference to rooted value that must not outlive this container jsref: JSRef<'b, T>, - /// Pointer to underlying Rust data - ptr: *T, /// On-stack JS pointer to assuage conservative stack scanner js_ptr: *mut JSObject, } @@ -405,7 +403,6 @@ impl<'a, 'b, T: Reflectable> Root<'a, 'b, T> { ptr: unrooted.ptr.clone(), chain: ContravariantLifetime, }, - ptr: unrooted.ptr.clone(), js_ptr: unrooted.reflector().get_jsobject(), }; roots.root(&root); |