Skip to content

chore: Remove unused W3DCustomEdging class - #3079

Open
CryoTheRenegade wants to merge 1 commit into
TheSuperHackers:mainfrom
CryoTheRenegade:chore/remove-w3dcustomedging
Open

chore: Remove unused W3DCustomEdging class#3079
CryoTheRenegade wants to merge 1 commit into
TheSuperHackers:mainfrom
CryoTheRenegade:chore/remove-w3dcustomedging

Conversation

@CryoTheRenegade

Copy link
Copy Markdown

Closes #3028.

W3DCustomEdging isn't used anywhere — nothing instantiates or calls it. What's left is just debris: a friend declaration in WorldHeightMap.h, four unused #includes in Core sources, and two #ifdef TEST_CUSTOM_EDGING blocks that call into an m_customEdging member that was never declared (the macro is never defined either, so that code is unreachable and wouldn't even compile). This deletes the class files from Generals/ and GeneralsMD/, drops them from both CMake lists (plus the already-commented Core lines), and cleans up the leftover friend declaration, includes, and dead blocks. g_generals and z_generals both build clean with it gone. No behavior change.

The class was never instantiated or called anywhere. Remaining traces
were a friend declaration in WorldHeightMap.h, four unused includes in
Core sources, and two unreachable #ifdef TEST_CUSTOM_EDGING blocks that
referenced an undeclared m_customEdging member.

Closes TheSuperHackers#3028

@xezon xezon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Any idea what the original author tried to achieve with that?

@xezon xezon added the Refactor Edits the code with insignificant behavior changes, is never user facing label Aug 8, 2026
@xezon xezon changed the title refactor: Remove unused W3DCustomEdging class chore: Remove unused W3DCustomEdging class Aug 8, 2026
@CryoTheRenegade

CryoTheRenegade commented Aug 8, 2026

Copy link
Copy Markdown
Author

Looks like a renderer for custom terrain blend edges, where instead of a soft gradient between two terrain types you'd draw a hand-authored ragged edge texture as a separate alpha-tested pass. The og author cloned W3DTreeBuffer as a template from what i can tell (the comments still say "trees" throughout). Never got finished or implemented afaik.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Edits the code with insignificant behavior changes, is never user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove superfluous class W3DCustomEdging

2 participants