Skip to content

Remove dead code_with_context helper - #260

Merged
Earlopain merged 2 commits into
ruby:mainfrom
nvasilevski:rubydex/dead-code
Jul 23, 2026
Merged

Remove dead code_with_context helper#260
Earlopain merged 2 commits into
ruby:mainfrom
nvasilevski:rubydex/dead-code

Conversation

@nvasilevski

@nvasilevski nvasilevski commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

DisplayInvalidBlocks#code_with_context has had no caller since display_invalid_blocks.rb was introduced in b57fe7f. display_block already builds and renders the relevant context directly.

Verification: bin/rspec — 170 examples, 0 failures.

[changelog skip]

code_with_context has had no caller since display_invalid_blocks.rb was introduced in b57fe7f. display_block builds and renders the context directly.

@Earlopain Earlopain left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks

Comment thread lib/syntax_suggest/display_invalid_blocks.rb Outdated
@Earlopain
Earlopain merged commit a5acd99 into ruby:main Jul 23, 2026
19 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Jul 23, 2026
(ruby/syntax_suggest#260)

* Remove dead code_with_context helper

code_with_context has had no caller since display_invalid_blocks.rb was introduced in b57fe7fc. display_block builds and renders the context directly.

* Remove blank line

---------

ruby/syntax_suggest@a5acd99073

Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
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.

2 participants