From bb819bf8e777db9ba9819fbc7415e5ffcad64f8e Mon Sep 17 00:00:00 2001 From: green Date: Fri, 11 Oct 2024 14:45:51 +0200 Subject: [PATCH] Self-review --- crates/fuel-core/src/database.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/fuel-core/src/database.rs b/crates/fuel-core/src/database.rs index 33f87dc2d03..d1d85dfe17e 100644 --- a/crates/fuel-core/src/database.rs +++ b/crates/fuel-core/src/database.rs @@ -236,13 +236,6 @@ where Err(GenesisDatabase::new(self.into_inner().data)) } } - - /// !!!! WARNING !!!! - /// This method is unsafe because it doesn't check if the height is already set. - /// This allows overriding the genesis state with a new one. - pub fn unsafe_into_genesis(self) -> GenesisDatabase { - GenesisDatabase::new(self.into_inner().data) - } } impl Database