New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: remove remaining unused code from cpp-subprocess #29961
refactor: remove remaining unused code from cpp-subprocess #29961
Conversation
The templates `is_ready`, `param_pack`, and `has_type` are not used anywhere, so let's remove them.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
Concept ACK. |
Deleting as much as possible seems fine. If code turns out to be needed in future (although I wouldn't think we are going to expand this interface), it can be retrieved from the git history. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree to the deletion. UPD. See #29961 (comment). |
Thanks for review and the feedback. I added commits to remove unused Popen methods ( |
Remove obsolete `check_output` references in the comments and remove the numbering of the Popen API methods, as they don't seem to provide a value and just make diffs larger for future changes.
7ebddf5
to
8b52e7f
Compare
Code review ACK 8b52e7f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 8b52e7f.
ACK 8b52e7f |
5a11d30 refactor, subprocess: Remove unused stream API calls (Hennadii Stepanov) 05b6f87 refactor, subprocess: Remove unused `Popen::child_created_` data member (Hennadii Stepanov) 9e1ccf5 refactor, subprocess: Remove unused `Popen::poll()` (Hennadii Stepanov) 24b53fc refactor, subprocess: Remove `Popen::pid()` (Hennadii Stepanov) Pull request description: This PR continues #29961. Please note that `Popen::poll()` is not required for #29868 anymore. ACKs for top commit: theuni: Easy code review ACK 5a11d30 since it's all removals :) theStack: Code-review ACK 5a11d30 Tree-SHA512: 11f984f8384c337782d058afa80011e88087a1b5a3ed6e4678d492e6c232b706a26312463c5dd8c529aa477497c8afca9f54574e0e36e3edd5675bd5d8424bbb
This PR removes remaining code that is unused within the cpp-subprocess module (templates and commented out code). Happy to add more removals if anyone finds more unused parts. Note that there are some API functions of the
Popen
class that we don't use, e.g.wait()
,pid()
,poll()
,kill()
, but they sound IMHO common enough to be useful in the future, so not sure how deep we should go there.