Skip to content

Commit 4092533

Browse files
committed
Remove maxPrimOpArity
1 parent 05560f6 commit 4092533

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/libexpr/eval.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,6 @@ void EvalState::addConstant(const string & name, Value * v)
600600
Value * EvalState::addPrimOp(const string & name,
601601
size_t arity, PrimOpFun primOp)
602602
{
603-
assert(arity <= maxPrimOpArity);
604-
605603
auto name2 = string(name, 0, 2) == "__" ? string(name, 2) : name;
606604
Symbol sym = symbols.create(name2);
607605

src/libexpr/eval.hh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@ private:
279279

280280
void addConstant(const string & name, Value * v);
281281

282-
constexpr static size_t maxPrimOpArity = 3;
283-
284282
Value * addPrimOp(const string & name,
285283
size_t arity, PrimOpFun primOp);
286284

0 commit comments

Comments
 (0)