Skip to content

Commit 75e77cc

Browse files
committed
chore: leftover unused code
1 parent fea7f52 commit 75e77cc

File tree

1 file changed

+0
-8
lines changed
  • crates/consensus/src/consensus

1 file changed

+0
-8
lines changed

crates/consensus/src/consensus/ctx.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use crate::tables;
1414
use crate::vote_set::VoteSet;
1515

1616
pub(crate) trait ConsensusReadDbOps {
17-
fn get_finalized_round(&self) -> DbResult<BlockRound>;
1817
fn get_current_round(&self) -> DbResult<BlockRound>;
1918
fn get_consensus_params(&self, round: BlockRound) -> DbResult<ConsensusParams> {
2019
Ok(self
@@ -126,13 +125,6 @@ impl<T> InsertOutcome<T> {
126125
macro_rules! impl_consensus_read_db_ops {
127126
($t:ty) => {
128127
impl ConsensusReadDbOps for $t {
129-
fn get_finalized_round(&self) -> DbResult<BlockRound> {
130-
// let tbl = self.open_table(&cons_finalized_round_count::TABLE)?;
131-
132-
// Ok(tbl.get(&())?.map(|g| g.value()).unwrap_or_default())
133-
todo!()
134-
}
135-
136128
fn get_current_round(&self) -> DbResult<BlockRound> {
137129
let tbl = self.open_table(&tables::cons_current_round::TABLE)?;
138130

0 commit comments

Comments
 (0)