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

Unsorted cleanup #6352

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Unsorted cleanup #6352

merged 1 commit into from
Jun 4, 2024

Conversation

Doubleumc
Copy link
Contributor

@Doubleumc Doubleumc commented May 31, 2024

About the pull request

Cleans up some duplicate, unused, and/or obsolete (due to native DM implementation) code in unsorted.dm.

Removed (unused):

  • is_hot
  • sign
  • rename_self
  • get_sorted_mobs (sortmobs is the one you're thinking of)
  • getxenos
  • getpreds
  • gethumans
  • getsurvivors
  • getertmembers
  • get_holograms
  • sortxenos
  • sortpreds
  • sorthumans
  • sortsurvivors
  • sortertmembers
  • blockhollow
  • get_random_zero_sum_variances
  • IsValidSrc
  • convert_to_json_text

Replaced (functionally identical):

  • InRange to ISINRANGE
  • between, dd_range to clamp (only difference was argument order)
  • check_bitflag to HAS_FLAG

Replaced (special):

  • getsynths, sortsynths were only used once for MOOC, which only really needed GLOB.human_mob_list filtered by issynth()

Explain why it's good for the game

Less duplication leads to greater maintainability.

Testing Photographs and Procedure

Boots without issue.

Changelog

No player-facing changes.

@github-actions github-actions bot added the Missing Changelog Maintainers always document their changes. label May 31, 2024
@vero5123
Copy link
Contributor

you should do a funny and fix all the single letter vars in the codebase.

@Doubleumc
Copy link
Contributor Author

I choose life.

@harryob harryob added this pull request to the merge queue Jun 4, 2024
Merged via the queue into cmss13-devs:master with commit 74e6e74 Jun 4, 2024
28 checks passed
@Doubleumc Doubleumc deleted the unsorted-cleanup branch June 4, 2024 21:10
Git-Nivrak pushed a commit to Git-Nivrak/cmss13 that referenced this pull request Jun 9, 2024
# About the pull request

Cleans up some duplicate, unused, and/or obsolete (due to native DM
implementation) code in `unsorted.dm`.

Removed (unused):
- `is_hot`
- `sign`
- `rename_self`
- `get_sorted_mobs` (`sortmobs` is the one you're thinking of)
- `getxenos`
- `getpreds`
- `gethumans`
- `getsurvivors`
- `getertmembers`
- `get_holograms`
- `sortxenos`
- `sortpreds`
- `sorthumans`
- `sortsurvivors`
- `sortertmembers`
- `blockhollow`
- `get_random_zero_sum_variances`
- `IsValidSrc`
- `convert_to_json_text`

Replaced (functionally identical):
- `InRange` to `ISINRANGE`
- `between`, `dd_range` to `clamp` (only difference was argument order)
- `check_bitflag` to `HAS_FLAG`

Replaced (special):
- `getsynths`, `sortsynths` were only used once for MOOC, which only
really needed `GLOB.human_mob_list` filtered by `issynth()`

<!-- Remove this text and explain what the purpose of your PR is.

Mention if you have tested your changes. If you changed a map, make sure
you used the mapmerge tool.
If this is an Issue Correction, you can type "Fixes Issue #169420" to
link the PR to the corresponding Issue number #169420.

Remember: something that is self-evident to you might not be to others.
Explain your rationale fully, even if you feel it goes without saying.
-->

# Explain why it's good for the game

Less duplication leads to greater maintainability.
# Testing Photographs and Procedure
Boots without issue.


# Changelog
No player-facing changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing Changelog Maintainers always document their changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants