Skip to content

Remove unused code#15845

Merged
straight-shoota merged 2 commits intocrystal-lang:masterfrom
straight-shoota:lint/unused-code
May 30, 2025
Merged

Remove unused code#15845
straight-shoota merged 2 commits intocrystal-lang:masterfrom
straight-shoota:lint/unused-code

Conversation

@straight-shoota
Copy link
Member

This was discovered with ameba's Lint/UnreachableCode and Lint/UnusedInstanceVariableAccess rules.


compiled_def.closure_context = @closure_context

@instructions
Copy link
Member Author

Choose a reason for hiding this comment

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

The method's return type is Nil, so this instance var read is useless.

@straight-shoota straight-shoota added this to the 1.17.0 milestone May 28, 2025
@straight-shoota straight-shoota merged commit 544a786 into crystal-lang:master May 30, 2025
38 checks passed
@straight-shoota straight-shoota deleted the lint/unused-code branch May 30, 2025 15:32
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