mirror of
https://github.com/NixOS/nix
synced 2025-06-26 15:51:15 +02:00
avoid unnecesary calls
This commit is contained in:
parent
49b0bb0206
commit
1472e045a7
2 changed files with 0 additions and 18 deletions
|
@ -51,14 +51,6 @@ void EvalState::forceValue(Value & v, const Pos & pos)
|
|||
}
|
||||
|
||||
|
||||
inline void EvalState::forceAttrs(Value & v)
|
||||
{
|
||||
forceValue(v, v.determinePos(noPos));
|
||||
if (v.type() != nAttrs)
|
||||
throwTypeError("value is %1% while a set was expected", v);
|
||||
}
|
||||
|
||||
|
||||
inline void EvalState::forceAttrs(Value & v, const Pos & pos)
|
||||
{
|
||||
forceValue(v, pos);
|
||||
|
@ -67,14 +59,6 @@ inline void EvalState::forceAttrs(Value & v, const Pos & pos)
|
|||
}
|
||||
|
||||
|
||||
inline void EvalState::forceList(Value & v)
|
||||
{
|
||||
forceValue(v, v.determinePos(noPos));
|
||||
if (!v.isList())
|
||||
throwTypeError("value is %1% while a list was expected", v);
|
||||
}
|
||||
|
||||
|
||||
inline void EvalState::forceList(Value & v, const Pos & pos)
|
||||
{
|
||||
forceValue(v, pos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue