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

Misc. code cleanup stuff (#243) (rip isOdd) #243

Merged
merged 6 commits into from
Mar 9, 2020
Merged

Misc. code cleanup stuff (#243) (rip isOdd) #243

merged 6 commits into from
Mar 9, 2020

Conversation

eritbh
Copy link
Member

@eritbh eritbh commented Mar 2, 2020

Adds documentation to a lot of helper methods, removes useless logic and unused functions, and other stuff like that. No particular priority, I'll be adding to this branch as I go through other code quality issues.

@@ -551,17 +550,6 @@ function modbutton () {
}
}

function createBanReason (message) {
Copy link
Member

Choose a reason for hiding this comment

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

huh, what did this ever do?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have no idea, lol. In its current state it was just a fancy way of returning the same string, so I removed it. Not sure if there was originally other functionality attached that was removed, or if someone had plans to make fancier ban reasons or something like that.

@eritbh eritbh changed the title Misc. code cleanup stuff Misc. code cleanup stuff (#243) (rip isOdd) Mar 9, 2020
@eritbh eritbh merged commit 53291c9 into master Mar 9, 2020
@eritbh eritbh deleted the misc-cleanup branch March 9, 2020 18:03
@eritbh eritbh added this to the v5.3 milestone Mar 10, 2020
eritbh added a commit that referenced this pull request Sep 5, 2024
* Nuke useless ban message logic

* Helper methods for making RegExps from user input

* Don't pass RegExp literals to new RegExp()

* Remove single-use helper TBHelpers.isOdd()

* Add comments and stuff to other helper methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants