HomePhabricator

Simplify "bool x = y ? true : false". Remove unused function and trailing…

Description

Simplify "bool x = y ? true : false". Remove unused function and trailing semicolon.

Summary:

  • [tests] Remove unused function InsecureRandBytes(size_t len)
  • Simplify "bool x = y ? true : false" to "bool x = y"

This is a backport of Core PR10553

Test Plan:

make check

Reviewers: #bitcoin_abc, markblundeberg

Reviewed By: #bitcoin_abc, markblundeberg

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

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Jun 8 2017, 07:43
deadalnixCommitted on May 28 2019, 11:26
deadalnixPushed on May 28 2019, 11:26
Reviewer
Restricted Project
Differential Revision
D3137: Simplify "bool x = y ? true : false". Remove unused function and trailing semicolon.
Parents
rABC0b8962a4a9f4: Extend validateaddress information for P2SH-embedded witness
Branches
Unknown
Tags
Unknown