From fd38d79be1c995735844e2a2ff8c969f8b107776 Mon Sep 17 00:00:00 2001 From: Sam Greenbury Date: Fri, 6 Sep 2024 15:09:45 +0100 Subject: [PATCH] Remove obsolete function --- trustchain-core/src/utils.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/trustchain-core/src/utils.rs b/trustchain-core/src/utils.rs index 73c295ed..cf9a7f9a 100644 --- a/trustchain-core/src/utils.rs +++ b/trustchain-core/src/utils.rs @@ -301,18 +301,6 @@ pub fn generate_key() -> JWK { JWK::generate_secp256k1().expect("Could not generate key.") } -#[allow(dead_code)] -pub fn set_panic_hook() { - // When the `console_error_panic_hook` feature is enabled, we can call the - // `set_panic_hook` function at least once during initialization, and then - // we will get better error messages if our code ever panics. - // - // For more details see - // - #[cfg(feature = "console_error_panic_hook")] - console_error_panic_hook::set_once(); -} - #[cfg(test)] mod tests { use super::*;