aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-03-02 22:41:56 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-11-04 15:04:07 +0100
commit40925337a972991468335b90ce4f685f7102d830 (patch)
tree81148704544666b8860d6140009d34f00793351c
parent05560f6350f5e330c286e048b8fbbb24dafbf16b (diff)
Remove maxPrimOpArity
-rw-r--r--src/libexpr/eval.cc2
-rw-r--r--src/libexpr/eval.hh2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index d371a3fb8..402de78ad 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -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);
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index 65cf04b57..1aab8e166 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -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);