Skip to content

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
@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