Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/rdoc/code_object/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class RDoc::Context < RDoc::CodeObject
attr_reader :constants_hash

##
# Creates an unnamed empty context with public current visibility
# Creates an unnamed empty context

def initialize
super
Expand Down
1 change: 0 additions & 1 deletion lib/rdoc/parser/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,6 @@ def add_alias_method(old_name, new_name, line_no)
handle_code_object_directives(@container, directives) if directives
return if document_suppressed?

visibility = @container.find_method(old_name, @singleton)&.visibility || :public
a = RDoc::Alias.new(old_name, new_name, comment, singleton: @singleton)
handle_modifier_directive(a, line_no)
a.store = @store
Expand Down
2 changes: 0 additions & 2 deletions test/rdoc/rdoc_stats_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ def test_report_constant
end

def test_report_constant_alias
mod = @tl.add_module RDoc::NormalModule, 'M'

c = @tl.add_class RDoc::NormalClass, 'C'

ca = RDoc::Constant.new 'CA', nil, nil
Expand Down