Skip to content

Commit 4ec25bd

Browse files
author
gotoken
committed
discarded unused parameter
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 565fec4 commit 4ec25bd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/benchmark.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# benchmark.rb
33
#
44
=begin
5+
2002-04-25: bmbm(): killed unused parameter @fmtstr (gotoken)
56
2001-11-26: Time.times renamed Process.times for ruby17 (gotoken#notwork.org)
67
2001-01-12: made bmbm module func. bmbm return Tms array.
78
2001-01-10: added bmbm, Job and INSTALL.rb (gotoken#notwork.org)
@@ -439,7 +440,7 @@ def file
439440
=end
440441

441442
module Benchmark
442-
BENCHMARK_VERSION = "2001-11-26"
443+
BENCHMARK_VERSION = "2002-04-25"
443444

444445
def Benchmark::times()
445446
Process::times()
@@ -478,7 +479,7 @@ def bmbm(width = 0, &blk)
478479
job.list.each{|label,item|
479480
print(label.ljust(width))
480481
res = Benchmark::measure(&item)
481-
print res.format(@fmtstr)
482+
print res.format()
482483
list.push res
483484
}
484485
sum = Tms.new; list.each{|i| sum += i}
@@ -494,7 +495,7 @@ def bmbm(width = 0, &blk)
494495
GC::start
495496
print label.ljust(width)
496497
res = Benchmark::measure(&item)
497-
print res.format(@fmtstr)
498+
print res.format()
498499
ary.push res
499500
list.push [label, res]
500501
}

0 commit comments

Comments
 (0)