From 13bd566eb714d368c1b6b0e05c1e8d1184cca405 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 6 Jan 2016 23:10:46 +0900 Subject: [PATCH] h2load: Remove RequestStat ctor --- src/h2load.cc | 4 +--- src/h2load.h | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/h2load.cc b/src/h2load.cc index 6beaa5bd..b061d870 100644 --- a/src/h2load.cc +++ b/src/h2load.cc @@ -97,8 +97,6 @@ bool Config::is_rate_mode() const { return (this->rate != 0); } bool Config::has_base_uri() const { return (!this->base_uri.empty()); } Config config; -RequestStat::RequestStat() : data_offset(0), completed(false) {} - constexpr size_t MAX_STATS = 1000000; Stats::Stats(size_t req_todo, size_t nclients) @@ -110,7 +108,7 @@ Stats::Stats(size_t req_todo, size_t nclients) client_stats.reserve(std::min(nclients, MAX_STATS)); } -Stream::Stream() : status_success(-1) {} +Stream::Stream() : req_stat{}, status_success(-1) {} namespace { std::random_device rd; diff --git a/src/h2load.h b/src/h2load.h index 6be57e3c..e5b17f0f 100644 --- a/src/h2load.h +++ b/src/h2load.h @@ -112,7 +112,6 @@ struct Config { }; struct RequestStat { - RequestStat(); // time point when request was sent std::chrono::steady_clock::time_point request_time; // time point when stream was closed