From 34c89b0723128f6ed326f1e56312da2aa450beaa Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Tue, 10 Oct 2017 14:54:34 +0900 Subject: [PATCH] Removed useless method related RubyToken. --- test/test_rdoc_parser_ruby.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/test/test_rdoc_parser_ruby.rb b/test/test_rdoc_parser_ruby.rb index e9e3fcf246..26b8d72c28 100644 --- a/test/test_rdoc_parser_ruby.rb +++ b/test/test_rdoc_parser_ruby.rb @@ -3758,21 +3758,6 @@ class Baz assert_equal 'there', baz.comment.text end - def tk klass, scan, line, char, name, text - klass = RDoc::RubyToken.const_get "Tk#{klass.to_s.upcase}" - - token = if klass.instance_method(:initialize).arity == 3 then - raise ArgumentError, "name not used for #{klass}" if name - klass.new scan, line, char - else - klass.new scan, line, char, name - end - - token.set_text text - - token - end - def util_parser(content) @parser = RDoc::Parser::Ruby.new @top_level, @filename, content, @options, @stats