Skip to content

Remove dead code: immutable_or_opaque() and cap_immutable_or_opaque()#4951

Merged
SeanTAllen merged 1 commit intomainfrom
sean/remove-dead-immutable-or-opaque
Mar 7, 2026
Merged

Remove dead code: immutable_or_opaque() and cap_immutable_or_opaque()#4951
SeanTAllen merged 1 commit intomainfrom
sean/remove-dead-immutable-or-opaque

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

immutable_or_opaque() in alias.c lost its sole non-recursive caller in PR #2585 (2018) and has been unreachable since. cap_immutable_or_opaque() in cap.c is only called from immutable_or_opaque(), making it transitively dead.

Removes both functions and their header declarations.

Closes #4950

immutable_or_opaque() lost its sole non-recursive caller in PR #2585
(2018) and has been unreachable since. cap_immutable_or_opaque() is
only called from immutable_or_opaque(), making it transitively dead.

Closes #4950
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Mar 7, 2026
@SeanTAllen SeanTAllen merged commit 09941a6 into main Mar 7, 2026
12 of 20 checks passed
@SeanTAllen SeanTAllen deleted the sean/remove-dead-immutable-or-opaque branch March 7, 2026 18:58
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove dead code: immutable_or_opaque() and cap_immutable_or_opaque()

2 participants