Skip to content

remove unused #includes of pycore_pymem.h #105166

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

Merged
merged 3 commits into from
Jun 1, 2023

Conversation

iritkatriel
Copy link
Member

No description provided.

@iritkatriel
Copy link
Member Author

@vstinner am I missing something here, or are these #includes obsolete?

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

@vstinner am I missing something here, or are these #includes obsolete?

I added comment like // _PyMem_IsPtrFreed() to show which function was used. If the code still builds with the and the function is no longer called in these files, you're good :-) It seems like the code was moved or refactored in the meanwhile. Or the include was copied by mistake. I'm not sure.

@iritkatriel iritkatriel merged commit 76b9c0c into python:main Jun 1, 2023
@iritkatriel iritkatriel deleted the pycore_pymem.h branch July 25, 2023 18:04
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