TransactionOutput: remove deprecated getAddressFrom* methods

Remove deprecated `getAddressFromP2PKHScript()` and `getAddressFromP2SH()` methods

They have been deprecated for more than one release.
This commit is contained in:
Sean Gilligan 2022-08-06 10:53:19 -07:00 committed by Andreas Schildbach
parent 13aee43443
commit 9c30bab375

View File

@ -128,23 +128,6 @@ public class TransactionOutput extends ChildMessage {
return scriptPubKey;
}
@Nullable
@Deprecated
public LegacyAddress getAddressFromP2PKHScript(NetworkParameters params) throws ScriptException {
if (ScriptPattern.isP2PKH(getScriptPubKey()))
return LegacyAddress.fromPubKeyHash(params,
ScriptPattern.extractHashFromP2PKH(getScriptPubKey()));
return null;
}
@Nullable
@Deprecated
public LegacyAddress getAddressFromP2SH(NetworkParameters params) throws ScriptException {
if (ScriptPattern.isP2SH(getScriptPubKey()))
return LegacyAddress.fromScriptHash(params, ScriptPattern.extractHashFromP2SH(getScriptPubKey()));
return null;
}
@Override
protected void parse() throws ProtocolException {
value = readInt64();