Skip to content

Commit

Permalink
[MINOR] Remove unused method (hyperledger#6713)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
  • Loading branch information
siladu authored Mar 12, 2024
1 parent 2360908 commit 7324710
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,6 @@ protected DefaultProtocolSchedule(final DefaultProtocolSchedule protocolSchedule
this.protocolSpecs = protocolSchedule.protocolSpecs;
}

public ScheduledProtocolSpec specScheduledForBlock(final ProcessableBlockHeader blockHeader) {
return protocolSpecs.stream()
.filter(s -> s.isOnOrAfterMilestoneBoundary(blockHeader))
.findFirst()
.orElseThrow(
() ->
new IllegalStateException(
"No protocol spec found for block " + blockHeader.getNumber()));
}

@Override
public ProtocolSpec getByBlockHeader(final ProcessableBlockHeader blockHeader) {
checkArgument(
Expand Down

0 comments on commit 7324710

Please sign in to comment.