Remove unused function arguments #13554

pull practicalswift wants to merge 3 commits into bitcoin:master from practicalswift:remove-unused-function-arguments changing 3 files +8 −8
  1. practicalswift commented at 9:34 PM on June 27, 2018: contributor

    Remove unused function arguments.

  2. fanquake added the label Refactoring on Jun 27, 2018
  3. Empact commented at 11:09 PM on June 27, 2018: member

    utACK 796c9e3

  4. ken2812221 commented at 7:48 AM on June 28, 2018: contributor

    utACK 796c9e371c30bb5cada70decaa027edbb4ad078f

  5. DrahtBot commented at 9:28 AM on June 28, 2018: member

    <!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:

    • #13062 (Make script interpreter independent from storage type CScript by sipa)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  6. promag commented at 9:37 AM on June 28, 2018: member

    utACK 796c9e3. @practicalswift have you checked if these arguments were used in the past?

  7. practicalswift commented at 8:29 AM on June 30, 2018: contributor

    @promag Yes absolutely, these were the results:

    • ThreadHTTP: argument never used.
    • DefaultOptions: argument never used.
    • ProcessGetBlockData: last use of interruptMsgProc removed in 66aa1d58a158991a8014a91335b5bc9c00062f56 (ping @thebluematt :-))
    • WitnessSigOps: argument never used.
  8. conscott commented at 12:08 PM on July 2, 2018: contributor

    Tested ACK 796c9e371c30bb5cada70decaa027edbb4ad078f

  9. fanquake commented at 1:49 AM on July 3, 2018: member

    Concept ACK @practicalswift What are you doing to find the unused arguments? I'm curious because (from a quick glance) there are more functions in those same files that also have unused arguments. Any reason not to include them here?

  10. practicalswift commented at 4:44 PM on July 6, 2018: contributor

    @fanquake What additional examples of unused arguments did you find? Let me know and I’ll investigate why the commercial static analyzer I used for this specific analysis missed them.

  11. fanquake commented at 1:47 PM on July 8, 2018: member

    @practicalswift See #13615 for one example.

  12. laanwj referenced this in commit 172f984f59 on Jul 9, 2018
  13. MarcoFalke commented at 12:05 PM on July 10, 2018: member

    Needs rebase?

  14. Remove unused argument to ThreadHTTP(...) 05dbb0c042
  15. Remove unused argument to DefaultOptions(...) d1d7cfebd2
  16. Remove unused argument to WitnessSigOps(...) bd9d0690dc
  17. practicalswift force-pushed on Jul 10, 2018
  18. practicalswift commented at 4:13 PM on July 10, 2018: contributor

    Rebased! :-)

  19. fanquake commented at 1:08 PM on July 15, 2018: member

    utACK bd9d069

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

  21. laanwj merged this on Jul 30, 2018
  22. laanwj closed this on Jul 30, 2018

  23. laanwj referenced this in commit 63d73f5bc8 on Jul 30, 2018
  24. fanquake removed this from the "Mergeable" column in a project

  25. PastaPastaPasta referenced this in commit 9e7fa7a2d9 on Jul 9, 2020
  26. PastaPastaPasta referenced this in commit 21d0711316 on Jul 9, 2020
  27. practicalswift deleted the branch on Apr 10, 2021
  28. UdjinM6 referenced this in commit a9375c6846 on Jun 29, 2021
  29. UdjinM6 referenced this in commit 0c1a7022ab on Jun 29, 2021
  30. UdjinM6 referenced this in commit 5163ec62fe on Jul 1, 2021
  31. UdjinM6 referenced this in commit bb121fcf34 on Jul 2, 2021
  32. UdjinM6 referenced this in commit fa6b9d2d46 on Jul 2, 2021
  33. gades referenced this in commit 14c791517e on Feb 10, 2022
  34. DrahtBot locked this on Aug 16, 2022

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-16 15:15 UTC

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