txscript: Remove unused parseScript func.

This commit is contained in:
Dave Collins 2019-03-13 01:13:03 -05:00 committed by Roy Lee
parent 8588536586
commit 08a53b25fb

View file

@ -202,12 +202,6 @@ func checkScriptTemplateParseable(script []byte, opcodes *[256]opcode) (*byte, e
return &firstOpcode, nil return &firstOpcode, nil
} }
// parseScript preparses the script in bytes into a list of parsedOpcodes while
// applying a number of sanity checks.
func parseScript(script []byte) ([]parsedOpcode, error) {
return parseScriptTemplate(script, &opcodeArray)
}
// unparseScript reversed the action of parseScript and returns the // unparseScript reversed the action of parseScript and returns the
// parsedOpcodes as a list of bytes // parsedOpcodes as a list of bytes
func unparseScript(pops []parsedOpcode) ([]byte, error) { func unparseScript(pops []parsedOpcode) ([]byte, error) {