Skip to content

Commit 270ddce

Browse files
committed
No need to set BenchmarkSet's @@current for load* methods
* It's already set by BenchmarkSet#initialize.
1 parent d9d65dc commit 270ddce

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

bench/benchmark-interface/lib/benchmark-interface/benchmark-set.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@ def initialize
2020

2121
def load_benchmarks(path)
2222
@path = path
23-
@@current = self
2423
load(path)
2524
end
2625

2726
def load_inlined_benchmark(code)
2827
@path = '-e'
29-
@@current = self
3028
TOPLEVEL_BINDING.eval(code)
3129
end
3230

3331
def load_mri_benchmarks(path, options)
3432
@path = path
35-
@@current = self
3633
Frontends::MRI.load_mri path, options
3734
end
3835

0 commit comments

Comments
 (0)