From c18b15da63e7d759ba9c1b89825c625ac42ee248 Mon Sep 17 00:00:00 2001 From: Robert Iannucci Date: Thu, 29 Nov 2012 17:53:30 -0800 Subject: Remove unnecessary parameter from ShouldDelayEdge --- src/build.cc | 2 +- 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. -- cgit v0.12