Commit 9570cdc
committed
Remove dead code and stale comments left by the Ripper parser
- Delete lib/rdoc/parser/ruby_tools.rb (and its autoload). The
RubyTools mixin -- get_tk / unget_tk / token_listener / etc. -- was
only included by the Ripper parser; the Ruby parser scans tokens
via Prism directly.
- Drop the "When mixin is created from RDoc::Parser::Ruby, module
name is already a resolved full-path name" note in mixin.rb. It
only existed to contrast against the Ripper parser's unresolved
names; with one parser left, it just mis-describes the lookup.
- Reword the find_enclosing_module_named comment in context.rb
("stopped representing module nesting" -> "does not represent
module nesting"); the past tense was relative to Ripper.
- Drop "just like the old parser did" tail from the
initialize/new rename comment in ruby.rb.1 parent dd8c5b5 commit 9570cdc
5 files changed
Lines changed: 3 additions & 170 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
786 | | - | |
| 786 | + | |
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
| 269 | + | |
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
685 | | - | |
| 685 | + | |
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
| |||
This file was deleted.
0 commit comments