Skip to content

Commit

Permalink
Removing irrelevant code
Browse files Browse the repository at this point in the history
  • Loading branch information
vusirikala committed Nov 26, 2024
1 parent bf2b3f1 commit 042a281
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
6 changes: 0 additions & 6 deletions consensus/consensus-types/src/proof_of_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,6 @@ impl SignedBatchInfoMsg {
pub fn take(self) -> Vec<SignedBatchInfo> {
self.signed_infos
}

pub fn author(&self) -> Option<PeerId> {
self.signed_infos
.first()
.map(|signed_info| signed_info.author())
}
}

#[derive(Clone, Debug, Deserialize, Serialize)]
Expand Down
7 changes: 0 additions & 7 deletions consensus/src/pipeline/commit_reliable_broadcast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ impl CommitMessage {
_ => None,
}
}

pub fn author(&self) -> Option<PeerId> {
match self {
CommitMessage::Vote(vote) => Some(vote.author()),
_ => None,
}
}
}

impl RBMessage for CommitMessage {}
Expand Down

0 comments on commit 042a281

Please sign in to comment.