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:
parent
4b6e3f7b82
commit
8680ae9cbd
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue