From 6a8b3796286d2f6e56e1fd6b83dfcb5f56d09d13 Mon Sep 17 00:00:00 2001 From: Qyriad Date: Wed, 1 May 2024 19:57:35 -0600 Subject: [PATCH] nix3-profile: remove check "name" attr in manifests It doesn't seem to have ever been used. Based off of commit a748e88bf4cca0fdc6ce75188e88017a7899d16b Upstream-PR: https://github.com/NixOS/nix/pull/9656 Change-Id: Idcf250a645fa43f2ef11fb15b503b070a62a917e --- src/libcmd/cmd-profiles.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libcmd/cmd-profiles.cc b/src/libcmd/cmd-profiles.cc index 4b17d60c6..101064956 100644 --- a/src/libcmd/cmd-profiles.cc +++ b/src/libcmd/cmd-profiles.cc @@ -153,8 +153,6 @@ ProfileManifest::ProfileManifest(EvalState & state, const Path & profile) std::string name = elems.is_object() ? elem.key() - : e.contains("name") - ? static_cast(e["name"]) : element.source ? getNameFromURL(parseURL(element.source->to_string())).value_or(element.identifier()) : element.identifier();