From b2089092a730b548d3c57da1adf65f6f77b6d982 Mon Sep 17 00:00:00 2001 From: Stanislav Cherviakov Date: Mon, 27 May 2024 11:07:55 +0100 Subject: [PATCH] cleanup --- .../src/state/concurrent_merkle_tree_header.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/account-compression/programs/account-compression/src/state/concurrent_merkle_tree_header.rs b/account-compression/programs/account-compression/src/state/concurrent_merkle_tree_header.rs index 6120f13333e..6d326b76142 100644 --- a/account-compression/programs/account-compression/src/state/concurrent_merkle_tree_header.rs +++ b/account-compression/programs/account-compression/src/state/concurrent_merkle_tree_header.rs @@ -99,19 +99,6 @@ impl ConcurrentMerkleTreeHeader { } } - pub fn is_initialized(&self) -> bool { - match self.account_type { - CompressionAccountType::Uninitialized => false, - CompressionAccountType::ConcurrentMerkleTree => { - match &self.header { - ConcurrentMerkleTreeHeaderData::V1(header) => { - header.max_buffer_size != 0 && header.max_depth != 0 - } - } - } - } - } - pub fn get_max_depth(&self) -> u32 { match &self.header { ConcurrentMerkleTreeHeaderData::V1(header) => header.max_depth,