WalletAppKit: remove deprecated constructors that take NetworkParameters

This commit is contained in:
Andreas Schildbach 2024-09-02 22:01:38 +02:00
parent 5a55660116
commit 35bef91cac

View File

@ -114,25 +114,6 @@ public class WalletAppKit extends AbstractIdleService implements Closeable {
@Nullable protected DeterministicKey restoreFromKey;
@Nullable protected PeerDiscovery discovery;
/**
* Creates a new WalletAppKit, with a newly created {@link Context}. Files will be stored in the given directory.
* @deprecated Use {@link #WalletAppKit(BitcoinNetwork, ScriptType, KeyChainGroupStructure, File, String)}
*/
@Deprecated
public WalletAppKit(NetworkParameters params, File directory, String filePrefix) {
this((BitcoinNetwork) params.network(), ScriptType.P2PKH, KeyChainGroupStructure.BIP32, directory, filePrefix);
}
/**
* Creates a new WalletAppKit, with a newly created {@link Context}. Files will be stored in the given directory.
* @deprecated Use {@link #WalletAppKit(BitcoinNetwork, ScriptType, KeyChainGroupStructure, File, String)}
*/
@Deprecated
public WalletAppKit(NetworkParameters params, ScriptType preferredOutputScriptType,
@Nullable KeyChainGroupStructure structure, File directory, String filePrefix) {
this((BitcoinNetwork) params.network(), preferredOutputScriptType, structure, directory, filePrefix);
}
/**
* Creates a new WalletAppKit, on the specified {@link BitcoinNetwork}. Files will be stored in the given directory.
*