Skip to content

Commit f43918f

Browse files
author
Aurélien Richez
committed
fix some warnings about unused values.
1 parent f13aeba commit f43918f

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

src/main/scala/io/iohk/ethereum/jsonrpc/CheckpointingService.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ import io.iohk.ethereum.blockchain.sync.regular.RegularSync.NewCheckpoint
99
import io.iohk.ethereum.consensus.blocks.CheckpointBlockGenerator
1010
import io.iohk.ethereum.crypto.ECDSASignature
1111
import io.iohk.ethereum.domain.Block
12-
import io.iohk.ethereum.domain.Blockchain
1312
import io.iohk.ethereum.domain.BlockchainReader
1413
import io.iohk.ethereum.domain.Checkpoint
1514
import io.iohk.ethereum.ledger.BlockQueue
1615
import io.iohk.ethereum.utils.ByteStringUtils
1716
import io.iohk.ethereum.utils.Logger
1817

1918
class CheckpointingService(
20-
blockchain: Blockchain,
2119
blockchainReader: BlockchainReader,
2220
blockQueue: BlockQueue,
2321
checkpointBlockGenerator: CheckpointBlockGenerator,

src/main/scala/io/iohk/ethereum/ledger/BlockImport.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class BlockImport(
8686
private def isPossibleNewBestBlock(newBlock: BlockHeader, currentBestBlock: BlockHeader): Boolean =
8787
newBlock.parentHash == currentBestBlock.hash && newBlock.number == currentBestBlock.number + 1
8888

89-
private def measureBlockMetrics(importResult: BlockImportResult)(implicit blockchainConfig: BlockchainConfig): Unit =
89+
private def measureBlockMetrics(importResult: BlockImportResult): Unit =
9090
importResult match {
9191
case BlockImportedToTop(blockImportData) =>
9292
blockImportData.foreach(blockData => BlockMetrics.measure(blockData.block, blockchainReader.getBlockByHash))

src/main/scala/io/iohk/ethereum/nodebuilder/NodeBuilder.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,6 @@ trait CheckpointingServiceBuilder {
570570

571571
lazy val checkpointingService =
572572
new CheckpointingService(
573-
blockchain,
574573
blockchainReader,
575574
blockQueue,
576575
checkpointBlockGenerator,

src/test/scala/io/iohk/ethereum/jsonrpc/CheckpointingServiceSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,6 @@ class CheckpointingServiceSpec
191191
val syncController: TestProbe = TestProbe()
192192
val checkpointBlockGenerator: CheckpointBlockGenerator = new CheckpointBlockGenerator()
193193
val service =
194-
new CheckpointingService(blockchain, blockchainReader, blockQueue, checkpointBlockGenerator, syncController.ref)
194+
new CheckpointingService(blockchainReader, blockQueue, checkpointBlockGenerator, syncController.ref)
195195
}
196196
}

0 commit comments

Comments
 (0)