Skip to content

Commit

Permalink
WalletProtobufSerializer: remove deprecated methods that take Network…
Browse files Browse the repository at this point in the history
…Parameters
  • Loading branch information
schildbach committed Sep 2, 2024
1 parent 8c1311a commit 8d1a2cc
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,13 +471,6 @@ public Wallet readWallet(Network network, @Nullable WalletExtension[] extensions
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
Expand Down Expand Up @@ -586,13 +579,6 @@ public Wallet readWallet(Network network, @Nullable WalletExtension[] extensions
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)
Expand Down

0 comments on commit 8d1a2cc

Please sign in to comment.