Skip to content

Commit

Permalink
Remove obsolete function
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreenbury committed Sep 6, 2024
1 parent 10b338f commit fd38d79
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions trustchain-core/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
// <https://github.com/rustwasm/console_error_panic_hook#readme>
#[cfg(feature = "console_error_panic_hook")]
console_error_panic_hook::set_once();
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit fd38d79

Please sign in to comment.