summaryrefslogtreecommitdiff
path: root/src/parser/parser.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-02-25 20:52:10 -0600
committerGitHub <noreply@github.com>2020-02-25 20:52:10 -0600
commit808bb1bd855799535a1b690865dc873793a37f7f (patch)
tree178d9bb00cccf12c11c6f7284dc66e0d6c8827ec /src/parser/parser.cpp
parent9301607b58a3b74dcea73c500c6391d6a51093f8 (diff)
Embed mkAssociative utilities within the API. (#3801)
Towards parser/API migration.
Diffstat (limited to 'src/parser/parser.cpp')
-rw-r--r--src/parser/parser.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/parser/parser.cpp b/src/parser/parser.cpp
index 447fb5d76..663be7f1f 100644
--- a/src/parser/parser.cpp
+++ b/src/parser/parser.cpp
@@ -515,22 +515,6 @@ Expr Parser::mkHoApply(Expr expr, std::vector<Expr>& args)
return expr;
}
-api::Term Parser::mkChain(api::Kind k, const std::vector<api::Term>& args)
-{
- if (args.size() == 2)
- {
- // if this is the case exactly 1 pair will be generated so the
- // AND is not required
- return d_solver->mkTerm(k, args[0], args[1]);
- }
- std::vector<api::Term> children;
- for (size_t i = 0, nargsmo = args.size() - 1; i < nargsmo; i++)
- {
- children.push_back(d_solver->mkTerm(k, args[i], args[i + 1]));
- }
- return d_solver->mkTerm(api::AND, children);
-}
-
bool Parser::isDeclared(const std::string& name, SymbolType type) {
switch (type) {
case SYM_VARIABLE:
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback