isFunctor: Simplify
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user