HomePhabricator

Merge #12284: Remove assigned but never used local variables. Enable linter…

Description

Merge #12284: Remove assigned but never used local variables. Enable linter checking for unused local variables.

Summary:
ea04bf7862 Enable flake8 warning F841 ("local variable 'foo' is assigned to but never used") (practicalswift)
169f3e8637 Remove assigned but never used local variables (practicalswift)

Pull request description:

Remove assigned but never used local variables. Enable Travis checking for unused local variables.

Tree-SHA512: d6052ec9044c5d1f03d874ea3c8addd5a156779213ef9200f89d3ae53230f2fd1691aff405c3dae14178e5ef09912c4432e92f606ef4a5220ed9daa140cdee81

Backport of Core PR12284
https://github.com/bitcoin/bitcoin/pull/12284/

Note: rather than Travis checking for unused local variables, our linter will check for unused local variables.

Test Plan:

test_runner.py --extended
arc lint --everything

Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: Fabien, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D3814

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Apr 1 2018, 22:23
nakihitoCommitted on Aug 8 2019, 22:49
nakihitoPushed on Aug 8 2019, 23:24
Reviewer
Restricted Owners Package
Differential Revision
D3814: Merge #12284: Remove assigned but never used local variables. Enable linter checking for unused local variables.
Parents
rSTAGING9d1d31fe6b4d: Merge #12569: net: Increase signal-to-noise ratio in debug.log by adjusting log…
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/10686