aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-02-17 16:51:10 +0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2018-02-17 16:54:21 +0200
commit66eeff33456d544e5852e580d8cac21f0c38c11f (patch)
tree7b45e5f57bbb40decaa2d2ba2456754271c843f0
parent7e0360504d1a964ad5bd0da996045bc3868d0d7d (diff)
libexpr: Remove unnecessary drvName assignment in prim_derivationStrict
drvName is already assigned to the same value right at the start of the function.
-rw-r--r--src/libexpr/primops.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 317623b22..f6c34d525 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -612,8 +612,6 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * *
drv.builder = state.forceString(*i->value, context, posDrvName);
else if (i->name == state.sSystem)
drv.platform = state.forceStringNoCtx(*i->value, posDrvName);
- else if (i->name == state.sName)
- drvName = state.forceStringNoCtx(*i->value, posDrvName);
else if (i->name == state.sOutputHash)
outputHash = state.forceStringNoCtx(*i->value, posDrvName);
else if (i->name == state.sOutputHashAlgo)
@@ -634,10 +632,6 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * *
drv.env.emplace(key, s);
if (i->name == state.sBuilder) drv.builder = s;
else if (i->name == state.sSystem) drv.platform = s;
- else if (i->name == state.sName) {
- drvName = s;
- printMsg(lvlVomit, format("derivation name is '%1%'") % drvName);
- }
else if (i->name == state.sOutputHash) outputHash = s;
else if (i->name == state.sOutputHashAlgo) outputHashAlgo = s;
else if (i->name == state.sOutputHashMode) handleHashMode(s);