From a069340ee34786c76f28f380667b76924309abfd Mon Sep 17 00:00:00 2001 From: Simon Dudley Date: Tue, 12 Mar 2024 10:32:14 +1000 Subject: [PATCH] Remove unused method Signed-off-by: Simon Dudley --- .../besu/ethereum/mainnet/DefaultProtocolSchedule.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/DefaultProtocolSchedule.java b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/DefaultProtocolSchedule.java index 9499a7a8064..4c209ac096d 100644 --- a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/DefaultProtocolSchedule.java +++ b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/DefaultProtocolSchedule.java @@ -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(