aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/cmd-profiles.cc
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-05-01 19:57:35 -0600
committerQyriad <qyriad@qyriad.me>2024-05-02 12:59:15 -0600
commit6a8b3796286d2f6e56e1fd6b83dfcb5f56d09d13 (patch)
tree36974ec1559d073e1ce049a344f92dfb4dc73bbb /src/libcmd/cmd-profiles.cc
parent5d2031f92de4fec9e82f6e591772a8859c85c8b7 (diff)
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
Diffstat (limited to 'src/libcmd/cmd-profiles.cc')
-rw-r--r--src/libcmd/cmd-profiles.cc2
1 files changed, 0 insertions, 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<std::string>(e["name"])
: element.source
? getNameFromURL(parseURL(element.source->to_string())).value_or(element.identifier())
: element.identifier();