Remove maxPrimOpArity
This commit is contained in:
parent
05560f6350
commit
40925337a9
|
@ -600,8 +600,6 @@ void EvalState::addConstant(const string & name, Value * v)
|
|||
Value * EvalState::addPrimOp(const string & name,
|
||||
size_t arity, PrimOpFun primOp)
|
||||
{
|
||||
assert(arity <= maxPrimOpArity);
|
||||
|
||||
auto name2 = string(name, 0, 2) == "__" ? string(name, 2) : name;
|
||||
Symbol sym = symbols.create(name2);
|
||||
|
||||
|
|
|
@ -279,8 +279,6 @@ private:
|
|||
|
||||
void addConstant(const string & name, Value * v);
|
||||
|
||||
constexpr static size_t maxPrimOpArity = 3;
|
||||
|
||||
Value * addPrimOp(const string & name,
|
||||
size_t arity, PrimOpFun primOp);
|
||||
|
||||
|
|
Loading…
Reference in a new issue