[ruby/irb] Clean up a duplicated definition

I simply forgot deleting it.

65399d5e9f
This commit is contained in:
Takashi Kokubun 2021-10-10 23:24:52 -07:00 committed by git
parent 2e183c6273
commit 82b87a8dc4

View file

@ -511,7 +511,7 @@ module TestIRB
def test_show_source_end_finder
pend if RUBY_ENGINE == 'truffleruby'
code = <<~EOS.gsub(/^/, ' ' * 4); eval(code, binding, __FILE__, __LINE__ + 1) unless respond_to?(:show_source_test_method)
eval(code = <<-EOS, binding, __FILE__, __LINE__ + 1)
def show_source_test_method
unless true
end
@ -549,11 +549,5 @@ module TestIRB
assert_empty err
assert_match(/^From: .+ @ line \d+ :\n/, out)
end
# This method is used for testing show_source command
def show_source_test_method
unless true
end
end
end
end