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

Remove obsolete surflock functions #2973

Merged

Conversation

Starbuck5
Copy link
Member

In 2018, llindstrom wrote of pgSurface_LockLifetime in surflock.rst that "This function is not called anywhere within pygame. It and pgLifetimeLock_Type are candidates for removal."

In the intervening 6 years, the functions and documentation have not been meaningfully edited, and these systems are still not used anywhere.

So let's remove them.

@Starbuck5 Starbuck5 added Code quality/robustness Code quality and resilience to changes Surface pygame.Surface labels Jul 6, 2024
@Starbuck5 Starbuck5 requested a review from a team as a code owner July 6, 2024 20:03
@Starbuck5 Starbuck5 force-pushed the remove-obsolete-surflock-functions branch from 8dc6984 to 9778f43 Compare July 6, 2024 20:39
Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

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

No use of keeping dead code around, nice cleanups! 👍

@ankith26 ankith26 added this to the 2.5.1 milestone Jul 7, 2024
Copy link
Member

@damusss damusss left a comment

Choose a reason for hiding this comment

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

I agree with Starbuck and Ankit, LGTM :)
I'm also curios if the functions were added and never used (why?) or just stopped being used.

@damusss damusss merged commit e8d517e into pygame-community:main Jul 7, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code quality/robustness Code quality and resilience to changes Surface pygame.Surface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants