Remove maxPrimOpArity

This commit is contained in:
Eelco Dolstra 2020-03-02 22:41:56 +01:00
parent 05560f6350
commit 40925337a9
2 changed files with 0 additions and 4 deletions

View file

@ -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);

View file

@ -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);