Skip to content

Commit c5360cc

Browse files
authored
Remove MetaMethod and GhostMethod (#1705)
RDoc has no special handling for these. `MetaMethod` is unreferenced, and `GhostMethod` was only used for tomdoc.
1 parent 9228788 commit c5360cc

5 files changed

Lines changed: 1 addition & 17 deletions

File tree

lib/rdoc.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ def self.home
197197
autoload :Alias, "#{__dir__}/rdoc/code_object/alias"
198198
autoload :AnyMethod, "#{__dir__}/rdoc/code_object/any_method"
199199
autoload :MethodAttr, "#{__dir__}/rdoc/code_object/method_attr"
200-
autoload :GhostMethod, "#{__dir__}/rdoc/code_object/ghost_method"
201-
autoload :MetaMethod, "#{__dir__}/rdoc/code_object/meta_method"
202200
autoload :Attr, "#{__dir__}/rdoc/code_object/attr"
203201

204202
autoload :Constant, "#{__dir__}/rdoc/code_object/constant"

lib/rdoc/code_object.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
# * RDoc::MethodAttr
1717
# * RDoc::Attr
1818
# * RDoc::AnyMethod
19-
# * RDoc::GhostMethod
20-
# * RDoc::MetaMethod
2119
# * RDoc::Alias
2220
# * RDoc::Constant
2321
# * RDoc::Require

lib/rdoc/code_object/ghost_method.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.

lib/rdoc/code_object/meta_method.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.

lib/rdoc/parser/ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def parse_comment_tomdoc(container, comment, line_no, start_line)
308308

309309
name, = signature.split %r%[ \(]%, 2
310310

311-
meth = RDoc::GhostMethod.new comment.text, name
311+
meth = RDoc::AnyMethod.new comment.text, name
312312
record_location(meth)
313313
meth.line = start_line
314314
meth.call_seq = signature

0 commit comments

Comments
 (0)