Skip to content

Commit

Permalink
h2load: Remove RequestStat ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Jan 6, 2016
1 parent a52920c commit 13bd566
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/h2load.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/h2load.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13bd566

Please sign in to comment.