Skip to content

Commit

Permalink
Remove dead functions from BankStart and PohRecorder
Browse files Browse the repository at this point in the history
Dead functions and doesn't seem useful to keep around.
  • Loading branch information
ksolana committed Jan 15, 2025
1 parent 70ab5e8 commit b747032
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions poh/src/poh_recorder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ pub struct BankStart {
}

impl BankStart {
fn get_working_bank_if_not_expired(&self) -> Option<&Bank> {
if self.should_working_bank_still_be_processing_txs() {
Some(&self.working_bank)
} else {
None
}
}

pub fn should_working_bank_still_be_processing_txs(&self) -> bool {
Bank::should_bank_still_be_processing_txs(
&self.bank_creation_time,
Expand Down Expand Up @@ -1119,16 +1111,6 @@ impl PohRecorder {
}
}

// Filters the return result of PohRecorder::bank_start(), returns the bank
// if it's still processing transactions
pub fn get_working_bank_if_not_expired<'a>(
bank_start: &Option<&'a BankStart>,
) -> Option<&'a Bank> {
bank_start
.as_ref()
.and_then(|bank_start| bank_start.get_working_bank_if_not_expired())
}

// Used in tests
#[cfg(feature = "dev-context-only-utils")]
pub fn schedule_dummy_max_height_reached_failure(&mut self) {
Expand Down

0 comments on commit b747032

Please sign in to comment.