From 844719f63db20e449d0393287664dd4db5e85e87 Mon Sep 17 00:00:00 2001 From: Tyera Date: Wed, 3 Jul 2024 10:40:24 -0600 Subject: [PATCH] Remove deprecated, unused methods from Bank (#1980) Remove deprecated methods from Bank (not in use) (cherry picked from commit 031304704641a8b5bb9b94f6e467641679f61258) --- runtime/src/bank.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index e14460f8eed901..ad7958b873e120 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -3072,11 +3072,6 @@ impl Bank { blockhash_queue.get_lamports_per_signature(hash) } - #[deprecated(since = "1.9.0", note = "Please use `get_fee_for_message` instead")] - pub fn get_fee_rate_governor(&self) -> &FeeRateGovernor { - &self.fee_rate_governor - } - pub fn get_fee_for_message(&self, message: &SanitizedMessage) -> Option { let lamports_per_signature = { let blockhash_queue = self.blockhash_queue.read().unwrap(); @@ -3130,19 +3125,6 @@ impl Bank { ) } - #[deprecated( - since = "1.6.11", - note = "Please use `get_blockhash_last_valid_block_height`" - )] - pub fn get_blockhash_last_valid_slot(&self, blockhash: &Hash) -> Option { - let blockhash_queue = self.blockhash_queue.read().unwrap(); - // This calculation will need to be updated to consider epoch boundaries if BlockhashQueue - // length is made variable by epoch - blockhash_queue - .get_hash_age(blockhash) - .map(|age| self.slot + MAX_PROCESSING_AGE as u64 - age) - } - pub fn get_blockhash_last_valid_block_height(&self, blockhash: &Hash) -> Option { let blockhash_queue = self.blockhash_queue.read().unwrap(); // This calculation will need to be updated to consider epoch boundaries if BlockhashQueue