Skip to content
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

gh-104146: Argument clinic: remove unused methods and variables #107608

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Aug 3, 2023

  • The i variable in version_comparitor was unused (it was a useless use of enumerate; we can just iterate directly over the iterator).
  • The methods IndentStack.indent(), DSLParser.calculate_indent(), cpp.Monitor.close() and cpp.Monitor.write() all have no test coverage. They are not used or referenced anywhere in Tools/clinic; the test suite passes without them; mypy and pyflakes pass without them; and Python builds without them. I think they can all be removed.

Copy link
Contributor

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

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

Looks good to me. make clinic also does not complain.

@AlexWaygood AlexWaygood enabled auto-merge (squash) August 3, 2023 23:41
@AlexWaygood AlexWaygood merged commit ee78d01 into python:main Aug 4, 2023
17 of 18 checks passed
@AlexWaygood AlexWaygood deleted the clinic-dead-code-2 branch August 4, 2023 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants