From c1206720ba540da2d406b16dffdf60515c459a96 Mon Sep 17 00:00:00 2001 From: Marcos Date: Fri, 9 Aug 2024 10:49:20 -0300 Subject: [PATCH] Remove unused method from BridgeSupport --- rskj-core/src/main/java/co/rsk/peg/BridgeSupport.java | 5 ----- .../src/test/java/co/rsk/peg/BridgeSupportTest.java | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/rskj-core/src/main/java/co/rsk/peg/BridgeSupport.java b/rskj-core/src/main/java/co/rsk/peg/BridgeSupport.java index 4f4aa3179f6..6a864cff6e6 100644 --- a/rskj-core/src/main/java/co/rsk/peg/BridgeSupport.java +++ b/rskj-core/src/main/java/co/rsk/peg/BridgeSupport.java @@ -173,11 +173,6 @@ InputStream getCheckPoints() { return checkpoints; } - @VisibleForTesting - ActivationConfig.ForBlock getActivations() { - return this.activations; - } - public void save() throws IOException { provider.save(); feePerKbSupport.save(); diff --git a/rskj-core/src/test/java/co/rsk/peg/BridgeSupportTest.java b/rskj-core/src/test/java/co/rsk/peg/BridgeSupportTest.java index 0b178f9902f..61e998033aa 100644 --- a/rskj-core/src/test/java/co/rsk/peg/BridgeSupportTest.java +++ b/rskj-core/src/test/java/co/rsk/peg/BridgeSupportTest.java @@ -125,16 +125,6 @@ void setUpOnEachTest() { federationSupportBuilder = new FederationSupportBuilder(); } - @Test - void activations_is_set() { - ActivationConfig.ForBlock activations = mock(ActivationConfig.ForBlock.class); - when(activations.isActive(ConsensusRule.RSKIP124)).thenReturn(true); - - BridgeSupport bridgeSupport = bridgeSupportBuilder.withActivations(activations).build(); - - assertTrue(bridgeSupport.getActivations().isActive(ConsensusRule.RSKIP124)); - } - @Test void getFeePerKb() { Coin feePerKb = Coin.valueOf(10_000L);