Drop dead code from Stacks
Stacks is local to this file, and only used in DataFromTransaction, so it's easy to confirm this code is unused.
This commit is contained in:
parent
fad42e8c4a
commit
5617840392
1 changed files with 2 additions and 9 deletions
|
@ -251,18 +251,11 @@ struct Stacks
|
||||||
std::vector<valtype> script;
|
std::vector<valtype> script;
|
||||||
std::vector<valtype> witness;
|
std::vector<valtype> witness;
|
||||||
|
|
||||||
Stacks() {}
|
Stacks() = delete;
|
||||||
explicit Stacks(const std::vector<valtype>& scriptSigStack_) : script(scriptSigStack_), witness() {}
|
Stacks(const Stacks&) = delete;
|
||||||
explicit Stacks(const SignatureData& data) : witness(data.scriptWitness.stack) {
|
explicit Stacks(const SignatureData& data) : witness(data.scriptWitness.stack) {
|
||||||
EvalScript(script, data.scriptSig, SCRIPT_VERIFY_STRICTENC, BaseSignatureChecker(), SigVersion::BASE);
|
EvalScript(script, data.scriptSig, SCRIPT_VERIFY_STRICTENC, BaseSignatureChecker(), SigVersion::BASE);
|
||||||
}
|
}
|
||||||
|
|
||||||
SignatureData Output() const {
|
|
||||||
SignatureData result;
|
|
||||||
result.scriptSig = PushAll(script);
|
|
||||||
result.scriptWitness.stack = witness;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue