From 9aa42b98db1bda770c1f291142477e52d1429128 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Fri, 6 Dec 2024 13:06:16 +0100 Subject: [PATCH] Remove leftover macro --- crates/backend/src/codegen.rs | 1 - src/lib.rs | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/crates/backend/src/codegen.rs b/crates/backend/src/codegen.rs index 7aba59c17e7..2f77b877580 100644 --- a/crates/backend/src/codegen.rs +++ b/crates/backend/src/codegen.rs @@ -229,7 +229,6 @@ impl ToTokens for ast::Struct { #[automatically_derived] impl #wasm_bindgen::describe::WasmDescribe for #name { fn describe() { - use #wasm_bindgen::__wbindgen_if_not_std; use #wasm_bindgen::describe::*; inform(RUST_STRUCT); inform(#name_len); diff --git a/src/lib.rs b/src/lib.rs index 403a119fa0e..35af9084062 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1633,20 +1633,6 @@ pub mod __rt { } } - #[macro_export] - #[doc(hidden)] - #[cfg(feature = "std")] - macro_rules! __wbindgen_if_not_std { - ($($i:item)*) => {}; - } - - #[macro_export] - #[doc(hidden)] - #[cfg(not(feature = "std"))] - macro_rules! __wbindgen_if_not_std { - ($($i:item)*) => ($($i)*) - } - #[inline] pub fn assert_not_null(s: *mut T) { if s.is_null() {