Skip to content

Commit 9838eb0

Browse files
authored
Followup of #1800: remove unused code/comment (#1801)
1 parent 12db965 commit 9838eb0

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

‎lib/rdoc/code_object/context.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class RDoc::Context < RDoc::CodeObject
108108
attr_reader :constants_hash
109109

110110
##
111-
# Creates an unnamed empty context with public current visibility
111+
# Creates an unnamed empty context
112112

113113
def initialize
114114
super

‎lib/rdoc/parser/ruby.rb‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ def add_alias_method(old_name, new_name, line_no)
629629
handle_code_object_directives(@container, directives) if directives
630630
return if document_suppressed?
631631

632-
visibility = @container.find_method(old_name, @singleton)&.visibility || :public
633632
a = RDoc::Alias.new(old_name, new_name, comment, singleton: @singleton)
634633
handle_modifier_directive(a, line_no)
635634
a.store = @store

‎test/rdoc/rdoc_stats_test.rb‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ def test_report_constant
8383
end
8484

8585
def test_report_constant_alias
86-
mod = @tl.add_module RDoc::NormalModule, 'M'
87-
8886
c = @tl.add_class RDoc::NormalClass, 'C'
8987

9088
ca = RDoc::Constant.new 'CA', nil, nil

0 commit comments

Comments
 (0)