From e370dee545b678badb60f491ff772619ae9bd929 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 16 Dec 2022 21:50:49 +0800 Subject: [PATCH] chore(napi): remove useless de_init --- crates/napi/src/bindgen_runtime/js_values/value_ref.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/napi/src/bindgen_runtime/js_values/value_ref.rs b/crates/napi/src/bindgen_runtime/js_values/value_ref.rs index 4ee5627b..0c911680 100644 --- a/crates/napi/src/bindgen_runtime/js_values/value_ref.rs +++ b/crates/napi/src/bindgen_runtime/js_values/value_ref.rs @@ -19,13 +19,6 @@ type RefInformation = ( pub(crate) static REFERENCE_MAP: Lazy> = Lazy::new(Default::default); -#[ctor::dtor] -fn de_init() { - REFERENCE_MAP.borrow_mut(|reference_map| { - std::mem::take(reference_map); - }); -} - /// ### Experimental feature /// /// Create a `reference` from `Class` instance.