WalletTool: remove unused/obsolete print help code

This code has been unused since the conversion to picocli which generates
help text and automatically handles printing it. The `wallet-tool-help.txt`
file was deleted in the commit with the picocli implementation.

Note: this also removes the last use of Guava in WalletTool.
This commit is contained in:
Sean Gilligan 2023-09-30 12:30:29 -07:00 committed by Andreas Schildbach
parent 41885df896
commit 1a30c00df8

View File

@ -39,7 +39,6 @@ import org.bitcoinj.wallet.CoinSelector;
import org.bitcoinj.wallet.DeterministicKeyChain;
import org.bitcoinj.wallet.DeterministicSeed;
import com.google.common.io.Resources;
import com.google.protobuf.ByteString;
import org.bitcoinj.core.AbstractBlockChain;
@ -339,11 +338,6 @@ public class WalletTool implements Callable<Integer> {
@Override
public Integer call() throws IOException, BlockStoreException {
if (help) {
System.out.println(Resources.toString(WalletTool.class.getResource("wallet-tool-help.txt"), StandardCharsets.UTF_8));
return 0;
}
ActionEnum action;
try {
action = ActionEnum.valueOf(actionStr.toUpperCase().replace("-", "_"));