forked from lix-project/lix
remove dead code
This commit is contained in:
parent
fb8377547b
commit
885f819922
|
@ -1433,8 +1433,6 @@ void EvalState::callFunction(Value & fun, Value & arg, Value & v, const Pos & po
|
||||||
size_t displ = 0;
|
size_t displ = 0;
|
||||||
|
|
||||||
if (!lambda.matchAttrs){
|
if (!lambda.matchAttrs){
|
||||||
// TODO: what is this arg? empty argument?
|
|
||||||
// add empty valmap here?
|
|
||||||
env2.values[displ++] = &arg;
|
env2.values[displ++] = &arg;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1457,7 +1455,6 @@ void EvalState::callFunction(Value & fun, Value & arg, Value & v, const Pos & po
|
||||||
lambda,
|
lambda,
|
||||||
i.name,
|
i.name,
|
||||||
*fun.lambda.env, &lambda);
|
*fun.lambda.env, &lambda);
|
||||||
// map2("fun", &fun, "arg", &arg));
|
|
||||||
env2.values[displ++] = i.def->maybeThunk(*this, env2);
|
env2.values[displ++] = i.def->maybeThunk(*this, env2);
|
||||||
} else {
|
} else {
|
||||||
attrsUsed++;
|
attrsUsed++;
|
||||||
|
@ -1478,7 +1475,6 @@ void EvalState::callFunction(Value & fun, Value & arg, Value & v, const Pos & po
|
||||||
lambda,
|
lambda,
|
||||||
i.name,
|
i.name,
|
||||||
*fun.lambda.env, &lambda);
|
*fun.lambda.env, &lambda);
|
||||||
// map2("fun", &fun, "arg", &arg));
|
|
||||||
abort(); // can't happen
|
abort(); // can't happen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1971,7 +1967,6 @@ string EvalState::coerceToString(const Pos & pos, Value & v, PathSet & context,
|
||||||
if (i == v.attrs->end())
|
if (i == v.attrs->end())
|
||||||
throwTypeError(pos, "cannot coerce a set to a string",
|
throwTypeError(pos, "cannot coerce a set to a string",
|
||||||
fakeEnv(1), 0);
|
fakeEnv(1), 0);
|
||||||
// map1("value", &v));
|
|
||||||
return coerceToString(pos, *i->value, context, coerceMore, copyToStore);
|
return coerceToString(pos, *i->value, context, coerceMore, copyToStore);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue