Skip to content

Commit a5acd99

Browse files
Remove dead code_with_context helper (#260)
* Remove dead code_with_context helper code_with_context has had no caller since display_invalid_blocks.rb was introduced in b57fe7f. display_block builds and renders the context directly. * Remove blank line --------- Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
1 parent fbd602f commit a5acd99

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

lib/syntax_suggest/display_invalid_blocks.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,5 @@ def call
6666
# Output code
6767
@io.puts(document)
6868
end
69-
70-
private def code_with_context
71-
lines = CaptureCodeContext.new(
72-
blocks: @blocks,
73-
code_lines: @code_lines
74-
).call
75-
76-
DisplayCodeWithLineNumbers.new(
77-
lines: lines,
78-
terminal: @terminal,
79-
highlight_lines: @invalid_lines
80-
).call
81-
end
8269
end
8370
end

0 commit comments

Comments
 (0)