From 548c973e8282bbec5b14f3860218b23564dc0381 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Thu, 25 Jul 2024 18:05:42 +0200 Subject: libstore: remove Worker::updateProgress just update progress every time a goal has returned from work(). there seem to be no performance penalties, and the code is much simpler now. Change-Id: I288ee568b764ee61f40a498d986afda49987cb50 --- src/libstore/build/worker.hh | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/libstore/build/worker.hh') diff --git a/src/libstore/build/worker.hh b/src/libstore/build/worker.hh index bbebeeb9c..eee47e23d 100644 --- a/src/libstore/build/worker.hh +++ b/src/libstore/build/worker.hh @@ -281,14 +281,6 @@ public: bool pathContentsGood(const StorePath & path); void markContentsGood(const StorePath & path); - - void updateProgress() - { - actDerivations.progress(doneBuilds, expectedBuilds + doneBuilds, runningBuilds, failedBuilds); - actSubstitutions.progress(doneSubstitutions, expectedSubstitutions + doneSubstitutions, runningSubstitutions, failedSubstitutions); - act.setExpected(actFileTransfer, expectedDownloadSize + doneDownloadSize); - act.setExpected(actCopyPath, expectedNarSize + doneNarSize); - } }; } -- cgit v1.2.3