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

Clean up overmap migration function #41241

Merged
merged 1 commit into from
Jun 12, 2020

Conversation

anothersimulacrum
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Checking out #41237, this function took ~3.5x as long to compile as any other function!
Though, that's not the real reason, it was only 2.7 seconds.
The real reason is that this migration code is no longer necessary, and makes this into a large and very ugly function.

Describe the solution

Remove old migrations.
All of the removed parts have been around since at least 0.E, there's not really any point in keeping them.
The rural houses at least were also caught in 0.E-1, but let's keep those so as to not leave this function completely empty.
This also makes some dead code - the nearby and unrelated adjacent aren't actually used anymore, but I think are worth keeping for future migrations.

Testing

Compiles, tests pass.

All of the removed parts have been around since at least 0.E, there's
not really any point in keeping them.
The rural houses at least were also caught in 0.E-1, but let's keep
those so as to not leave this function completely empty.
This also makes some dead code - the nearby and unrelated adjacent
aren't actually used anymore, but I think are worth keeping for future
migrations.
@anothersimulacrum anothersimulacrum added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Jun 12, 2020
@ZhilkinSerg ZhilkinSerg merged commit 816198f into CleverRaven:master Jun 12, 2020
@anothersimulacrum anothersimulacrum deleted the migration-cleanup branch June 12, 2020 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants