Skip to content

Commit 39e7d26

Browse files
committed
Remove unnecessary MethodAttr#param_seq as it's always nil and not used
- `MethodAttr` is a superclass of `AnyMethod` and `Attr` - `AnyMethod` defineds its own `param_seq` method so this is redundant for it - The only place that calls `param_seq` is in `Darkfish`'s class page, which only calls it on `AnyMethod` as `Attr` is rendered in a different section - It doesn't really make sense for attributes to have a param_seq anyway
1 parent 8841721 commit 39e7d26

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/rdoc/code_object/method_attr.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ class RDoc::MethodAttr < RDoc::CodeObject
6363

6464
attr_reader :arglists
6565

66-
##
67-
# Pretty parameter list for this method
68-
69-
attr_reader :param_seq
70-
71-
7266
##
7367
# Creates a new MethodAttr from token stream +text+ and method or attribute
7468
# name +name+.
@@ -91,7 +85,6 @@ def initialize text, name
9185
@arglists = nil
9286
@block_params = nil
9387
@call_seq = nil
94-
@param_seq = nil
9588
@params = nil
9689
end
9790

0 commit comments

Comments
 (0)