diff options
author | Robert Iannucci <robbie@rail.com> | 2012-11-30 01:53:30 (GMT) |
---|---|---|
committer | Robert Iannucci <robbie@rail.com> | 2012-11-30 01:53:30 (GMT) |
commit | c18b15da63e7d759ba9c1b89825c625ac42ee248 (patch) | |
tree | 67eeccdb48eb056ae3d901612b8f085d0ee4237d /src | |
parent | 57086d5d99fa7e6e9415a84cd77358246a691a59 (diff) | |
download | Ninja-c18b15da63e7d759ba9c1b89825c625ac42ee248.zip Ninja-c18b15da63e7d759ba9c1b89825c625ac42ee248.tar.gz Ninja-c18b15da63e7d759ba9c1b89825c625ac42ee248.tar.bz2 |
Remove unnecessary parameter from ShouldDelayEdge
Diffstat (limited to 'src')
-rw-r--r-- | src/build.cc | 2 | ||||
-rw-r--r-- | src/state.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/build.cc b/src/build.cc index eacac50..93ab10d 100644 --- a/src/build.cc +++ b/src/build.cc @@ -410,7 +410,7 @@ Edge* Plan::FindWork() { void Plan::ScheduleWork(Edge* edge) { Pool* pool = edge->pool(); - if (pool->ShouldDelayEdge(*edge)) { + if (pool->ShouldDelayEdge()) { pool->DelayEdge(edge); pool->RetrieveReadyEdges(&ready_); } else { diff --git a/src/state.h b/src/state.h index f1cc4c7..918fe09 100644 --- a/src/state.h +++ b/src/state.h @@ -47,7 +47,7 @@ struct Pool { const string& name() const { return name_; } /// true if the Pool might delay this edge - bool ShouldDelayEdge(const Edge& edge) const { return depth_ != 0; } + bool ShouldDelayEdge() const { return depth_ != 0; } /// informs this Pool that the given edge is committed to be run. /// Pool will count this edge as using resources from this pool. |