aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval-inline.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-02-04 00:33:13 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-02-04 00:33:13 +0100
commit4c755c3b3fc427afe192d223b37c288c88cc57d5 (patch)
tree2cf2973f2a6d1b1a204efc4adafee82bff95f7d7 /src/libexpr/eval-inline.hh
parent1aa5994e6d7bfb32895264c3a2f1d94cc7272a72 (diff)
parent50efc5499a7d924828bed654be207a846c040fa0 (diff)
Merge branch 'issue-3505' of https://github.com/kamadorueda/nix
Diffstat (limited to 'src/libexpr/eval-inline.hh')
-rw-r--r--src/libexpr/eval-inline.hh16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libexpr/eval-inline.hh b/src/libexpr/eval-inline.hh
index 655408cd3..08acb0877 100644
--- a/src/libexpr/eval-inline.hh
+++ b/src/libexpr/eval-inline.hh
@@ -51,14 +51,6 @@ void EvalState::forceValue(Value & v, const Pos & pos)
}
-inline void EvalState::forceAttrs(Value & v)
-{
- forceValue(v);
- 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);
- 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);