Remove unnecessary parameter from ShouldDelayEdge
authorRobert Iannucci <robbie@rail.com>
Fri, 30 Nov 2012 01:53:30 +0000 (17:53 -0800)
committerRobert Iannucci <robbie@rail.com>
Fri, 30 Nov 2012 01:53:30 +0000 (17:53 -0800)
src/build.cc
src/state.h

index eacac50..93ab10d 100644 (file)
@@ -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 {
index f1cc4c7..918fe09 100644 (file)
@@ -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.