h2load: Remove RequestStat ctor

This commit is contained in:
Tatsuhiro Tsujikawa 2016-01-06 23:10:46 +09:00
parent a52920cec0
commit 13bd566eb7
2 changed files with 1 additions and 4 deletions

View File

@ -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()); } bool Config::has_base_uri() const { return (!this->base_uri.empty()); }
Config config; Config config;
RequestStat::RequestStat() : data_offset(0), completed(false) {}
constexpr size_t MAX_STATS = 1000000; constexpr size_t MAX_STATS = 1000000;
Stats::Stats(size_t req_todo, size_t nclients) 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)); client_stats.reserve(std::min(nclients, MAX_STATS));
} }
Stream::Stream() : status_success(-1) {} Stream::Stream() : req_stat{}, status_success(-1) {}
namespace { namespace {
std::random_device rd; std::random_device rd;

View File

@ -112,7 +112,6 @@ struct Config {
}; };
struct RequestStat { struct RequestStat {
RequestStat();
// time point when request was sent // time point when request was sent
std::chrono::steady_clock::time_point request_time; std::chrono::steady_clock::time_point request_time;
// time point when stream was closed // time point when stream was closed