Skip to content

Commit

Permalink
Remove dead methods in accounts_db.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
ksolana committed Oct 19, 2024
1 parent 2bde0fc commit 34a2387
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2073,11 +2073,6 @@ impl AccountsDb {
)
}

pub fn expected_cluster_type(&self) -> ClusterType {
self.cluster_type
.expect("Cluster type must be set at initialization")
}

/// Returns if the experimental accounts lattice hash is enabled
pub fn is_experimental_accumulator_hash_enabled(&self) -> bool {
self.is_experimental_accumulator_hash_enabled
Expand Down Expand Up @@ -6424,11 +6419,6 @@ impl AccountsDb {
);
}

pub fn checked_iterative_sum_for_capitalization(total_cap: u64, new_cap: u64) -> u64 {
let new_total = total_cap as u128 + new_cap as u128;
AccountsHasher::checked_cast_for_capitalization(new_total)
}

pub fn checked_sum_for_capitalization<T: Iterator<Item = u64>>(balances: T) -> u64 {
AccountsHasher::checked_cast_for_capitalization(balances.map(|b| b as u128).sum::<u128>())
}
Expand Down

0 comments on commit 34a2387

Please sign in to comment.