From fc52b862706416e237e861a6af80d263e9dc385c Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Tue, 7 Jan 2014 13:45:50 -0800 Subject: [PATCH] Remove dead code, tidy output --- src/benchmark.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/benchmark.cc b/src/benchmark.cc index ad61c4b2..707e7e55 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -341,10 +341,8 @@ void ConsoleReporter::ReportRuns(const std::vector& reports) { BenchmarkRunData stddev_data; internal::ComputeStats(reports, &mean_data, &stddev_data); - // Output using PrintRun. PrintRunData(mean_data); PrintRunData(stddev_data); - fprintf(stdout, "\n"); } void ConsoleReporter::PrintRunData(const BenchmarkRunData& result) { @@ -1141,16 +1139,9 @@ void RunMatchingBenchmarks(const std::string& spec, context.cpu_scaling_enabled = CpuScalingEnabled(); context.name_field_width = name_field_width; - if (reporter->ReportContext(context)) { - for (internal::Benchmark::Instance& benchmark : benchmarks) { - //std::unique_ptr pool; - //if (benchmark.threads > 0) { - // pool = new thread::ThreadPool(benchmark.threads); - // pool->StartWorkers(); - //} - Benchmark::RunInstance(/*pool, */benchmark, reporter); - } - } + if (reporter->ReportContext(context)) + for (internal::Benchmark::Instance& benchmark : benchmarks) + Benchmark::RunInstance(benchmark, reporter); } void FindMatchingBenchmarkNames(const std::string& spec,