Skip to content

Commit

Permalink
Merge pull request #320 from nico/cleanup
Browse files Browse the repository at this point in the history
Remove unused variable last_update_millis_.
  • Loading branch information
evmar committed Jun 2, 2012
2 parents b4412fb + a2f3d6c commit 28196d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
BuildStatus::BuildStatus(const BuildConfig& config)
: config_(config),
start_time_millis_(GetTimeMillis()),
last_update_millis_(start_time_millis_),
started_edges_(0), finished_edges_(0), total_edges_(0),
have_blank_line_(true), progress_status_format_(NULL) {
#ifndef _WIN32
Expand Down Expand Up @@ -99,7 +98,6 @@ void BuildStatus::BuildEdgeFinished(Edge* edge,
if (total_time > 5*1000) {
printf("%.1f%% %d/%d\n", finished_edges_ * 100 / (float)total_edges_,
finished_edges_, total_edges_);
last_update_millis_ = now;
}
}
} else {
Expand Down
2 changes: 0 additions & 2 deletions src/build.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ struct BuildStatus {

/// Time the build started.
int64_t start_time_millis_;
/// Time we last printed an update.
int64_t last_update_millis_;

int started_edges_, finished_edges_, total_edges_;

Expand Down

0 comments on commit 28196d9

Please sign in to comment.