From f132f355b4ae17c1f4c4644de3e8ff8beeabaf7b Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sat, 7 Sep 2013 20:17:55 +0200 Subject: [PATCH] Remove unused killer time measurement Time gets mesured at runner level. Will introuce the use Benchmark.times there. --- lib/mutant/killer.rb | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/lib/mutant/killer.rb b/lib/mutant/killer.rb index 469b9fa4..da1e1577 100644 --- a/lib/mutant/killer.rb +++ b/lib/mutant/killer.rb @@ -33,7 +33,7 @@ module Mutant # def initialize(strategy, mutation) @strategy, @mutation = strategy, mutation - run_with_benchmark + @killed = run end # Test for kill failure @@ -65,14 +65,6 @@ module Mutant @killed end - # Return runtime of killer - # - # @return [Float] - # - # @api private - # - attr_reader :runtime - # Return mutated source # # @return [String] @@ -85,19 +77,6 @@ module Mutant private - # Run with taking the time - # - # @return [undefined] - # - # @api private - # - def run_with_benchmark - times = Benchmark.measure do - @killed = run - end - @runtime = times.real - end - # Return subject # # @return [Subject]