diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-10-08T11·22+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-10-08T11·22+0200 |
commit | 51cf4455b2857efb6f3a2fda01b45baab2af7e73 (patch) | |
tree | 0b51a448bd90c8724eccaa650fa8ef1f95beb310 /src/libexpr/eval-inline.hh | |
parent | 8a8752163611400e2386f1f1a449d9d3fb8f1496 (diff) |
isFunctor: Simplify
Diffstat (limited to 'src/libexpr/eval-inline.hh')
-rw-r--r-- | src/libexpr/eval-inline.hh | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/libexpr/eval-inline.hh b/src/libexpr/eval-inline.hh index b470fa315d61..0748fbd3f3e1 100644 --- a/src/libexpr/eval-inline.hh +++ b/src/libexpr/eval-inline.hh @@ -78,15 +78,4 @@ inline void EvalState::forceList(Value & v, const Pos & pos) throwTypeError("value is %1% while a list was expected, at %2%", v, pos); } -inline bool EvalState::isFunctor(Value& fun) -{ - if (fun.type == tAttrs) { - auto found = fun.attrs->find(sFunctor); - if (found != fun.attrs->end()) { - return true; - } - } - return false; -} - } |