diff options
author | eldritch horrors <pennae@lix.systems> | 2024-10-05 00:38:35 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-10-05 21:19:51 +0000 |
commit | 649d8cd08fa16c71e3580f16d77c2122540f3195 (patch) | |
tree | a904bff8c6fee45e08cb7154c9b6befaa964f525 /src/libstore/build/goal.hh | |
parent | 9adf6f4568d5a6b1c61ff93beb12a45b962c2602 (diff) |
libstore: remove Worker::removeGoal
we can use our newfound powers of Goal::work Is A Real Promise to remove
completed goals from continuation promises. apart from being much easier
to follow it's also a lot more efficient because we have the iterator to
the item we are trying to remove, skipping a linear search of the cache.
Change-Id: Ie0190d051c5f4b81304d98db478348b20c209df5
Diffstat (limited to 'src/libstore/build/goal.hh')
-rw-r--r-- | src/libstore/build/goal.hh | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libstore/build/goal.hh b/src/libstore/build/goal.hh index b524d3118..de1c92c85 100644 --- a/src/libstore/build/goal.hh +++ b/src/libstore/build/goal.hh @@ -82,11 +82,6 @@ struct Goal */ std::string name; - struct WorkResult; - - // for use by Worker and Goal only. will go away once work() is a promise. - kj::Own<kj::PromiseFulfiller<Result<WorkResult>>> notify; - protected: AsyncSemaphore::Token slotToken; |