refactor(chainspec): remove unused once_cell_set utility (#23043)

This commit is contained in:
Nicolas SSS
2026-03-18 12:54:16 +01:00
committed by GitHub
parent 7c53936634
commit d148f39cca

View File

@@ -36,15 +36,6 @@ pub use spec::{
DepositContract, ForkBaseFeeParams, DEV, HOLESKY, HOODI, MAINNET, SEPOLIA,
};
use reth_primitives_traits::sync::OnceLock;
/// Simple utility to create a thread-safe sync cell with a value set.
pub fn once_cell_set<T>(value: T) -> OnceLock<T> {
let once = OnceLock::new();
let _ = once.set(value);
once
}
#[cfg(test)]
mod tests {
use super::*;