1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

irb: Removed unused variables

This commit is contained in:
Nobuyoshi Nakada 2020-12-20 19:36:24 +09:00
parent 4b6e3f7b82
commit 8680ae9cbd
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -224,7 +224,6 @@ module TestIRB
IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |line, line_no, &block|
time = Time.now
result = block.()
now = Time.now
puts 'custom processing time: %fs' % (Time.now - time) if IRB.conf[:MEASURE]
result
}
@ -258,7 +257,6 @@ module TestIRB
IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |line, line_no, &block|
time = Time.now
result = block.()
now = Time.now
puts 'custom processing time: %fs' % (Time.now - time) if IRB.conf[:MEASURE]
result
}