Skip to content

Commit d5776df

Browse files
committed
Remove unused Context#defined_in? method
1 parent ca4efcd commit d5776df

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

lib/rdoc/code_object/context.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -688,13 +688,6 @@ def current_section
688688
section
689689
end
690690

691-
##
692-
# Is part of this thing was defined in +file+?
693-
694-
def defined_in?(file)
695-
@in_files.include?(file)
696-
end
697-
698691
def display(method_attr) # :nodoc:
699692
if method_attr.is_a? RDoc::Attr
700693
"#{method_attr.definition} #{method_attr.pretty_name}"

test/rdoc/test_rdoc_context.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -437,12 +437,6 @@ def test_current_section
437437
assert_equal default_section, @context.current_section
438438
end
439439

440-
def test_defined_in_eh
441-
assert @c1.defined_in?(@c1.top_level)
442-
443-
refute @c1.defined_in?(@store.add_file('name.rb'))
444-
end
445-
446440
def test_equals2
447441
assert_equal @c3, @c3
448442
refute_equal @c2, @c3

0 commit comments

Comments
 (0)