mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 01:40:26 +01:00
WalletProtobufSerializer: remove deprecated methods that take NetworkParameters
This commit is contained in:
parent
8c1311a4c4
commit
8d1a2cc966
@ -471,13 +471,6 @@ public class WalletProtobufSerializer {
|
||||
return readWallet(network, extensions, walletProto, false);
|
||||
}
|
||||
|
||||
/** @deprecated use {@link #readWallet(Network, WalletExtension[], Protos.Wallet)} */
|
||||
@Deprecated
|
||||
public Wallet readWallet(NetworkParameters params, @Nullable WalletExtension[] extensions,
|
||||
Protos.Wallet walletProto) throws UnreadableWalletException {
|
||||
return readWallet(params.network(), extensions, walletProto);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Loads wallet data from the given protocol buffer and inserts it into the given Wallet object. This is primarily
|
||||
* useful when you wish to pre-register extension objects. Note that if loading fails the provided Wallet object
|
||||
@ -586,13 +579,6 @@ public class WalletProtobufSerializer {
|
||||
return wallet;
|
||||
}
|
||||
|
||||
/** @deprecated use {@link #readWallet(Network, WalletExtension[], Protos.Wallet, boolean)} */
|
||||
@Deprecated
|
||||
public Wallet readWallet(NetworkParameters params, @Nullable WalletExtension[] extensions,
|
||||
Protos.Wallet walletProto, boolean forceReset) throws UnreadableWalletException {
|
||||
return readWallet(params.network(), extensions, walletProto, forceReset);
|
||||
}
|
||||
|
||||
private void loadExtensions(Wallet wallet, WalletExtension[] extensionsList, Protos.Wallet walletProto) throws UnreadableWalletException {
|
||||
final Map<String, WalletExtension> extensions = new HashMap<>();
|
||||
for (WalletExtension e : extensionsList)
|
||||
|
Loading…
Reference in New Issue
Block a user