From d67a71c2447858a02e4e549b270c9db9c8a9cfb7 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Mon, 2 Sep 2024 22:21:11 +0200 Subject: [PATCH] FakeTxBuilder: remove deprecated methods that take NetworkParameters --- .../org/bitcoinj/testing/FakeTxBuilder.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java b/core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java index d229f29031a..fb7bf6c0cd2 100644 --- a/core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java +++ b/core/src/main/java/org/bitcoinj/testing/FakeTxBuilder.java @@ -26,7 +26,6 @@ import org.bitcoinj.core.Block; import org.bitcoinj.base.Coin; import org.bitcoinj.crypto.ECKey; -import org.bitcoinj.core.NetworkParameters; import org.bitcoinj.core.ProtocolException; import org.bitcoinj.base.Sha256Hash; import org.bitcoinj.core.StoredBlock; @@ -64,15 +63,6 @@ public static Transaction createFakeTx(Network network) { return createFakeTxWithoutChangeAddress(Coin.COIN, randomAddress(network)); } - /** - * Create a fake transaction, without change. - * @deprecated use {@link FakeTxBuilder#createFakeTx(Network)} - */ - @Deprecated - public static Transaction createFakeTx(final NetworkParameters params) { - return createFakeTxWithoutChangeAddress(Coin.COIN, randomAddress(params.network())); - } - /** Create a fake transaction, without change. */ public static Transaction createFakeTxWithoutChange(final TransactionOutput output) { Transaction prevTx = FakeTxBuilder.createFakeTx(Coin.COIN, randomKey()); @@ -157,16 +147,6 @@ public static Transaction createFakeTx(Network network, Coin value, Address to) return createFakeTxWithChangeAddress(value, to, randomAddress(network)); } - /** - * Create a fake TX of sufficient realism to exercise the unit tests. Two outputs, one to us, one to somewhere - * else to simulate change. There is one random input. - * @deprecated use {@link #createFakeTx(Network, Coin, Address)} - */ - @Deprecated - public static Transaction createFakeTx(NetworkParameters params, Coin value, Address to) { - return createFakeTx(params.network(), value, to); - } - /** * Create a fake TX of sufficient realism to exercise the unit tests. Two outputs, one to us, one to somewhere * else to simulate change. There is one random input.