summaryrefslogtreecommitdiff
path: root/src/smt
diff options
context:
space:
mode:
authorTim King <taking@google.com>2017-07-14 16:56:11 -0700
committerTim King <taking@cs.nyu.edu>2017-07-19 18:25:13 -0700
commitd70a63324c95210f1d78c2efc46395d2369d2e2b (patch)
tree5f1ce222cb3940eb427e3c80544b405479ac02ab /src/smt
parent7fd11d0df4c257a916e93c3f44238f1d3f70f721 (diff)
Removing the unused CDAttribute. This makes CDHashMap::obliterate unused. Removing it as well.
Diffstat (limited to 'src/smt')
-rw-r--r--src/smt/smt_engine.cpp9
-rw-r--r--src/smt/smt_engine.h18
2 files changed, 1 insertions, 26 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index 327f978e4..837968aa2 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -794,9 +794,7 @@ public:
}
}
- void nmNotifyDeleteNode(TNode n) {
- d_smt.d_smtAttributes->deleteAllAttributes(n);
- }
+ void nmNotifyDeleteNode(TNode n) {}
Node applySubstitutions(TNode node) const {
return Rewriter::rewrite(d_topLevelSubstitutions.apply(node));
@@ -981,14 +979,12 @@ SmtEngine::SmtEngine(ExprManager* em) throw() :
d_status(),
d_replayStream(NULL),
d_private(NULL),
- d_smtAttributes(NULL),
d_statisticsRegistry(NULL),
d_stats(NULL),
d_channels(new LemmaChannels())
{
SmtScope smts(this);
d_originalOptions.copyValues(em->getOptions());
- d_smtAttributes = new expr::attr::SmtAttributes(d_context);
d_private = new smt::SmtEnginePrivate(*this);
d_statisticsRegistry = new StatisticsRegistry();
d_stats = new SmtEngineStatistics();
@@ -1204,9 +1200,6 @@ SmtEngine::~SmtEngine() throw() {
delete d_private;
d_private = NULL;
- delete d_smtAttributes;
- d_smtAttributes = NULL;
-
delete d_userContext;
d_userContext = NULL;
delete d_context;
diff --git a/src/smt/smt_engine.h b/src/smt/smt_engine.h
index 3df1dbea8..ed265e2b8 100644
--- a/src/smt/smt_engine.h
+++ b/src/smt/smt_engine.h
@@ -74,13 +74,6 @@ namespace prop {
class PropEngine;
}/* CVC4::prop namespace */
-namespace expr {
- namespace attr {
- class AttributeManager;
- struct SmtAttributes;
- }/* CVC4::expr::attr namespace */
-}/* CVC4::expr namespace */
-
namespace smt {
/**
* Representation of a defined function. We keep these around in
@@ -357,20 +350,9 @@ class CVC4_PUBLIC SmtEngine {
// to access d_modelCommands
friend class ::CVC4::Model;
friend class ::CVC4::theory::TheoryModel;
- // to access SmtAttributes
- friend class expr::attr::AttributeManager;
// to access getModel(), which is private (for now)
friend class GetModelCommand;
- /**
- * There's something of a handshake between the expr package's
- * AttributeManager and the SmtEngine because the expr package
- * doesn't have a Context on its own (that's owned by the
- * SmtEngine). Thus all context-dependent attributes are stored
- * here.
- */
- expr::attr::SmtAttributes* d_smtAttributes;
-
StatisticsRegistry* d_statisticsRegistry;
smt::SmtEngineStatistics* d_stats;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback