Skip to content

Simplify Timer.stop()#1839

Merged
player-03 merged 2 commits intoopenfl:developfrom
NeeEoo:improve-timers
Sep 1, 2025
Merged

Simplify Timer.stop()#1839
player-03 merged 2 commits intoopenfl:developfrom
NeeEoo:improve-timers

Conversation

@NeeEoo
Copy link
Contributor

@NeeEoo NeeEoo commented Sep 6, 2024

Simplified the stop() method in haxe/Timer.hx by removing redundant iterations and updated NativeApplication.hx to only run on active timers.

NeeEoo and others added 2 commits September 6, 2024 03:20
We aren't using `i`, so we can iterate over the array normally. And there are no longer null entries, so we don't have to check for those.
@NeeEoo
Copy link
Contributor Author

NeeEoo commented Sep 6, 2024

Ah thank you!

@player-03 player-03 merged commit 86283df into openfl:develop Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants