Skip to content

refactor: Remove unused raw-pointer read helper from univalue - #28168

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2307-remove-code-
Jul 28, 2023
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2307-remove-code-

Conversation

@maflcko

@maflcko maflcko commented Jul 27, 2023

Copy link
Copy Markdown
Member

The helpers are unused outside of tests and redundant with the existing bool read(std::string_view raw);.

Fix both issues by removing them.

Also, simplify the tests code by removing a std::string constructor where possible.

@DrahtBot

DrahtBot commented Jul 27, 2023 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK stickies-v, TheCharlatan

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@fanquake
fanquake requested a review from stickies-v July 27, 2023 10:27
@maflcko
maflcko force-pushed the 2307-remove-code- branch 2 times, most recently from fa783ac to 9999cfc Compare July 27, 2023 11:10

@stickies-v stickies-v left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 9999cfc1f3b728132e011f0aec24211212924de2

Comment thread src/univalue/include/univalue.h Resolved
@maflcko
maflcko force-pushed the 2307-remove-code- branch from 9999cfc to fa7668e Compare July 27, 2023 11:24
@maflcko
maflcko marked this pull request as draft July 27, 2023 11:58
@maflcko
maflcko force-pushed the 2307-remove-code- branch from fa7668e to fa940f4 Compare July 27, 2023 12:25
@maflcko
maflcko marked this pull request as ready for review July 27, 2023 13:17

@stickies-v stickies-v left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK fa940f4

@sedited sedited left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK fa940f4

@fanquake
fanquake merged commit 8aa77a7 into bitcoin:master Jul 28, 2023
@maflcko
maflcko deleted the 2307-remove-code- branch July 28, 2023 11:37
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jun 6, 2024
Summary:
```
The helpers are unused outside of tests and redundant with the existing bool read(std::string_view raw);.

Fix both issues by removing them.

Also, simplify the tests code by removing a std::string constructor where possible.
```

Backport of [[bitcoin/bitcoin#28168 | core#28168]].

Depends on D16295.

Test Plan:
  ninja all check

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D16296
@bitcoin bitcoin locked and limited conversation to collaborators Jul 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants