diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2018-07-05 23:43:54 -0400 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2018-07-12 18:44:33 -0400 |
commit | 5617840392dad8c00c0e4216f1a536daaa9dd4bd (patch) | |
tree | a534ae963c6ed77024ad3b08cfcd14ed1cfd9b93 /src | |
parent | fad42e8c4a9d625146f82bab9a038d945d40ac4f (diff) | |
download | bitcoin-5617840392dad8c00c0e4216f1a536daaa9dd4bd.tar.xz |
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.
Diffstat (limited to 'src')
-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 60a8a2655d..bf2a6b7b3c 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -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; - } }; } |