Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

DocumentUtil static #2232

Merged

Conversation

toasted-nutbread
Copy link
Collaborator

This change updates DocumentUtil to be entirely a static utility class. The reason that this was originally non-static was due to the use of its _transparentColorPattern field, which was stored to cache the regex. However, this can just as easily be assigned to the class itself for the same functionality. This simplifies the class API quite a bit and will no longer require instantiating and sharing instances across various classes.

@toasted-nutbread toasted-nutbread merged commit 1e91bf1 into FooSoft:master Sep 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant