diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-07-22 16:13:26 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-07-22 16:20:07 +0200 |
commit | 6deac922e34dc3751a8b36c053579c9df9ad9b11 (patch) | |
tree | 604f1adcc2552f32d0a07648e34b3309b65cd1b1 | |
parent | 0d1ebf4d3f39631666b122654a419bdfda7f89db (diff) | |
parent | 5617840392dad8c00c0e4216f1a536daaa9dd4bd (diff) |
Merge #13633: Drop dead code from Stacks
5617840392dad8c00c0e4216f1a536daaa9dd4bd Drop dead code from Stacks (Ben Woosley)
Pull request description:
Stacks is local to this file, and only used in DataFromTransaction, so
it's easy to confirm this code is unused.
Tree-SHA512: cc680c99f9b31cb56db70f453087d642f83906ce594c07a6bf3e61427cfbee41441495d440b240419ba3386582cf0670c0999b2f51e7fd56b00e0a0f3f618845
-rw-r--r-- | src/script/sign.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/script/sign.cpp b/src/script/sign.cpp index f1ac1f411a..c2ae4ff2ea 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -288,18 +288,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; - } }; } |