WalletApplication: remove deprecated method that returns NetworkParameters

This commit is contained in:
Andreas Schildbach 2024-09-02 21:41:03 +02:00
parent 2cee5a35e5
commit e9e444a425

View File

@ -25,7 +25,6 @@ import org.bitcoinj.base.BitcoinNetwork;
import org.bitcoinj.base.ScriptType;
import org.bitcoinj.base.internal.PlatformUtils;
import org.bitcoinj.core.Context;
import org.bitcoinj.core.NetworkParameters;
import org.bitcoinj.kits.WalletAppKit;
import org.bitcoinj.utils.AppDataDirectory;
import org.bitcoinj.utils.BriefLogFormatter;
@ -78,15 +77,6 @@ public abstract class WalletApplication implements AppDelegate {
return applicationName;
}
/**
* @return Parameters for network this wallet is running on
* @deprecated Use {@link #network} (or {@link NetworkParameters#of} if you really need a {@link NetworkParameters}.)
*/
@Deprecated
public NetworkParameters params() {
return NetworkParameters.of(network);
}
public BitcoinNetwork network() {
return network;
}