Drop dead code from Stacks #13633

pull Empact wants to merge 1 commits into bitcoin:master from Empact:stacks changing 1 files +2 −9
  1. Empact commented at 9:33 AM on July 11, 2018: member

    Stacks is local to this file, and only used in DataFromTransaction, so it's easy to confirm this code is unused.

  2. Empact commented at 9:34 AM on July 11, 2018: member

    Split from #13266 /cc @achow101

  3. fanquake added the label Refactoring on Jul 11, 2018
  4. in src/script/sign.cpp:254 in b170cb1776 outdated
     250 | @@ -251,18 +251,10 @@ struct Stacks
     251 |      std::vector<valtype> script;
     252 |      std::vector<valtype> witness;
     253 |  
     254 | -    Stacks() {}
     255 | -    explicit Stacks(const std::vector<valtype>& scriptSigStack_) : script(scriptSigStack_), witness() {}
     256 | +    Stacks() = delete;
    


    promag commented at 1:56 PM on July 12, 2018:

    Also disallow implicit copy constructor?

        Stacks(const Stacks&) = delete;
    
  5. promag commented at 1:58 PM on July 12, 2018: member

    Tested ACK b170cb1.

  6. practicalswift commented at 2:08 PM on July 12, 2018: contributor

    Concept ACK

  7. 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.
    5617840392
  8. Empact force-pushed on Jul 12, 2018
  9. sipa commented at 2:50 AM on July 14, 2018: member

    utACK 5617840392dad8c00c0e4216f1a536daaa9dd4bd

  10. MarcoFalke commented at 12:33 PM on July 14, 2018: member

    utACK 5617840

  11. fanquake commented at 10:10 AM on July 18, 2018: member

    utACK 5617840

  12. fanquake added this to the "Mergeable" column in a project

  13. laanwj commented at 2:21 PM on July 22, 2018: member

    utACK 5617840392dad8c00c0e4216f1a536daaa9dd4bd

  14. laanwj merged this on Jul 22, 2018
  15. laanwj closed this on Jul 22, 2018

  16. laanwj referenced this in commit 6deac922e3 on Jul 22, 2018
  17. fanquake removed this from the "Mergeable" column in a project

  18. jasonbcox referenced this in commit 06265e7af0 on Dec 20, 2019
  19. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 06:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me