Skip to content

Conversation

@sirdigbot
Copy link
Contributor

Provide an ArrayStack.Clear method since this really has no reason not to exist.
Left out the non-methodmap native since I was told it wasn't needed.

I didn't write a test plugin since because ArrayStack just uses a CellArray under the hood, this completely re-uses the code from ArrayList.Clear. I assume that's ok?

@sirdigbot
Copy link
Contributor Author

The ArrayList.Clear code I copied is here.

Copy link
Member

@peace-maker peace-maker left a comment

Choose a reason for hiding this comment

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

This looks good, thank you.
Usually I'd ask for a use case where this feature was needed, but in this case mirroring ArrayList.Clear doesn't add any maintenance burden.

@Headline Headline merged commit c471e41 into alliedmodders:master Jan 22, 2022
@sirdigbot sirdigbot deleted the array-stack-clear branch February 3, 2022 00:46
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.

3 participants