diff --git a/src/api/api_context.cpp b/src/api/api_context.cpp index 75782a28d..47a25f313 100644 --- a/src/api/api_context.cpp +++ b/src/api/api_context.cpp @@ -76,7 +76,6 @@ namespace api { m_sutil(m()), m_last_result(m()), m_ast_trail(m()), - m_replay_stack(), m_pmanager(m_limit) { m_error_code = Z3_OK; @@ -100,23 +99,12 @@ namespace api { m_fpa_fid = m().mk_family_id("fpa"); m_seq_fid = m().mk_family_id("seq"); m_dt_plugin = static_cast(m().get_plugin(m_dt_fid)); - - if (!m_user_ref_count) { - m_replay_stack.push_back(0); - } install_tactics(*this); } context::~context() { - m_last_obj = 0; - if (!m_user_ref_count) { - for (unsigned i = 0; i < m_replay_stack.size(); ++i) { - dealloc(m_replay_stack[i]); - } - m_ast_trail.reset(); - } reset_parser(); } diff --git a/src/api/api_context.h b/src/api/api_context.h index 23c8d3fd2..de492bb45 100644 --- a/src/api/api_context.h +++ b/src/api/api_context.h @@ -68,7 +68,6 @@ namespace api { ast_ref_vector m_last_result; //!< used when m_user_ref_count == true ast_ref_vector m_ast_trail; //!< used when m_user_ref_count == false unsigned_vector m_ast_lim; - ptr_vector m_replay_stack; ref m_last_obj; //!< reference to the last API object returned by the APIs