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:
Ben Woosley 2018-07-05 23:43:54 -04:00
parent fad42e8c4a
commit 5617840392
No known key found for this signature in database
GPG key ID: 6EE5F3785F78B345

View file

@ -251,18 +251,11 @@ struct Stacks
std::vector<valtype> script;
std::vector<valtype> witness;
Stacks() {}
explicit Stacks(const std::vector<valtype>& scriptSigStack_) : script(scriptSigStack_), witness() {}
Stacks() = delete;
Stacks(const Stacks&) = delete;
explicit Stacks(const SignatureData& data) : witness(data.scriptWitness.stack) {
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;
}
};
}