Skip to content

Commit 7255613

Browse files
authored
Merge pull request #539 from ruby/remove-useless-method
Removed useless method related RubyToken.
2 parents e629a82 + 34c89b0 commit 7255613

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

test/test_rdoc_parser_ruby.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3758,21 +3758,6 @@ class Baz
37583758
assert_equal 'there', baz.comment.text
37593759
end
37603760

3761-
def tk klass, scan, line, char, name, text
3762-
klass = RDoc::RubyToken.const_get "Tk#{klass.to_s.upcase}"
3763-
3764-
token = if klass.instance_method(:initialize).arity == 3 then
3765-
raise ArgumentError, "name not used for #{klass}" if name
3766-
klass.new scan, line, char
3767-
else
3768-
klass.new scan, line, char, name
3769-
end
3770-
3771-
token.set_text text
3772-
3773-
token
3774-
end
3775-
37763761
def util_parser(content)
37773762
@parser = RDoc::Parser::Ruby.new @top_level, @filename, content, @options,
37783763
@stats

0 commit comments

Comments
 (0)