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

Rename PyClockObject to pgClockObject, remove rendered field, small cleanups #2351

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

zoldalma999
Copy link
Member

@zoldalma999 zoldalma999 commented Jul 26, 2023

As far as I could tell, nothing uses the rendered field, so no reason to keep it around

EDIT: I found the commit that added it. It had no use for it back then either. And there was no use added as far as I could tell.

Also changed the name from PyClockObject to pgClockObject to be more consistent with all the other struct's names.

Removed the PyClockObject *_clock = (PyClockObject *)self; lines by making selfs be already clock objects and casting the functions in the methods table

@zoldalma999 zoldalma999 requested a review from a team as a code owner July 26, 2023 09:29
@zoldalma999 zoldalma999 changed the title Remove rendered field of PyClockObject Rename PyClockObject to pgClockObject, remove rendered field, small cleanups Jul 26, 2023
src_c/time.c Outdated Show resolved Hide resolved
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.

LGTM, thanks for the PR 🍎

@ankith26 ankith26 added this to the 2.3.1 milestone Jul 26, 2023
@ankith26 ankith26 added Code quality/robustness Code quality and resilience to changes time pygame.time labels Jul 26, 2023
Copy link
Member

@Starbuck5 Starbuck5 left a comment

Choose a reason for hiding this comment

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

Nice simplifications in this PR!

@Starbuck5 Starbuck5 merged commit 8ae38e4 into pygame-community:main Jul 27, 2023
31 checks passed
@zoldalma999 zoldalma999 deleted the clock-remove-rendered branch August 13, 2023 10:49
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 time pygame.time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants