From 6eb492f636d2c950a6064389dfba297baff8e08e Mon Sep 17 00:00:00 2001 From: Aina Niemetz Date: Tue, 12 Feb 2019 20:16:24 -0800 Subject: New C++ API: Remove redundant mkTerm function. (#2836) --- src/api/cvc4cpp.cpp | 15 --------------- src/api/cvc4cpp.h | 8 -------- src/api/cvc4cppkind.h | 1 - 3 files changed, 24 deletions(-) (limited to 'src') diff --git a/src/api/cvc4cpp.cpp b/src/api/cvc4cpp.cpp index ea70fc056..5d1f853e0 100644 --- a/src/api/cvc4cpp.cpp +++ b/src/api/cvc4cpp.cpp @@ -2531,21 +2531,6 @@ Term Solver::mkTerm(Kind kind) const } } -Term Solver::mkTerm(Kind kind, Sort sort) const -{ - try - { - CVC4_API_KIND_CHECK_EXPECTED(kind == SEP_NIL, kind) << "SEP_NIL"; - Term res = d_exprMgr->mkNullaryOperator(*sort.d_type, extToIntKind(kind)); - (void)res.d_expr->getType(true); /* kick off type checking */ - return res; - } - catch (const CVC4::TypeCheckingException& e) - { - throw CVC4ApiException(e.getMessage()); - } -} - Term Solver::mkTerm(Kind kind, Term child) const { try diff --git a/src/api/cvc4cpp.h b/src/api/cvc4cpp.h index 955aff21a..2ac762b3e 100644 --- a/src/api/cvc4cpp.h +++ b/src/api/cvc4cpp.h @@ -1702,14 +1702,6 @@ class CVC4_PUBLIC Solver */ Term mkTerm(Kind kind) const; - /** - * Create 0-ary term of given kind and sort. - * @param kind the kind of the term - * @param sort the sort argument to this kind - * @return the Term - */ - Term mkTerm(Kind kind, Sort sort) const; - /** * Create a unary term of given kind. * @param kind the kind of the term diff --git a/src/api/cvc4cppkind.h b/src/api/cvc4cppkind.h index 4e69ddfe1..3184da78e 100644 --- a/src/api/cvc4cppkind.h +++ b/src/api/cvc4cppkind.h @@ -1755,7 +1755,6 @@ enum CVC4_PUBLIC Kind : int32_t * Parameters: 0 * Create with: * mkSepNil(Sort sort) - * mkTerm(Kind kind, Sort sort) */ SEP_NIL, /** -- cgit v1.2.3