From be59cd8bfbc4965604204a8a423742e74def1d31 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Wed, 25 Aug 2021 03:12:03 -0500 Subject: [PATCH] Remove unused output --- src/nix-eval-jobs.cc | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/nix-eval-jobs.cc b/src/nix-eval-jobs.cc index a9bf44b..a13e99f 100644 --- a/src/nix-eval-jobs.cc +++ b/src/nix-eval-jobs.cc @@ -100,14 +100,6 @@ struct MyArgs : MixEvalArgs, MixCommonArgs static MyArgs myArgs; -static nlohmann::json serializeStorePathSet(StorePathSet &paths, LocalFSStore &store) { - auto array = nlohmann::json::array(); - for (auto & p : paths) { - array.push_back(store.printStorePath(p)); - } - return array; -} - static void worker( EvalState & state, Bindings & autoArgs, @@ -205,23 +197,6 @@ static void worker( localStore->addPermRoot(storePath, root); } - uint64_t downloadSize, narSize; - StorePathSet willBuild, willSubstitute, unknown; - std::vector paths; - StringSet outputNames; - - for (auto & output : outputs) { - outputNames.insert(output.first); - } - paths.push_back({storePath, outputNames}); - - localStore->queryMissing(paths, - willBuild, - willSubstitute, - unknown, - downloadSize, - narSize); - DrvInfo::Outputs outputs = drv->queryOutputs(); nlohmann::json out; for (auto & p : outputs) { @@ -229,10 +204,6 @@ static void worker( } job["outputs"] = std::move(out); - job["builds"] = serializeStorePathSet(willBuild, *localStore); - job["substitutes"] = serializeStorePathSet(willSubstitute, *localStore); - job["unknown"] = serializeStorePathSet(unknown, *localStore); - reply["job"] = std::move(job); }