Skip to content

Commit cfda268

Browse files
committed
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.
1 parent fbd602f commit cfda268

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

lib/syntax_suggest/display_invalid_blocks.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,5 @@ def call
6767
@io.puts(document)
6868
end
6969

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
8270
end
8371
end

0 commit comments

Comments
 (0)