txscript: Remove unused isScriptHash function.

This commit is contained in:
Dave Collins 2019-03-13 01:11:35 -05:00 committed by Olaoluwa Osuntokun
parent 3b86e0a0e2
commit 671b5fefef
No known key found for this signature in database
GPG key ID: 3BBD59E99B280306

View file

@ -54,17 +54,6 @@ func isSmallInt(op byte) bool {
return op == OP_0 || (op >= OP_1 && op <= OP_16)
}
// isScriptHash returns true if the script passed is a pay-to-script-hash
// transaction, false otherwise.
//
// DEPRECATED. Use isScriptHashScript or extractScriptHash instead.
func isScriptHash(pops []parsedOpcode) bool {
return len(pops) == 3 &&
pops[0].opcode.value == OP_HASH160 &&
pops[1].opcode.value == OP_DATA_20 &&
pops[2].opcode.value == OP_EQUAL
}
// IsPayToPubKey returns true if the script is in the standard pay-to-pubkey
// (P2PK) format, false otherwise.
func IsPayToPubKey(script []byte) bool {