diff options
author | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2009-12-11 04:00:14 +0000 |
---|---|---|
committer | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2009-12-11 04:00:14 +0000 |
commit | d26cd7a159bb56f492e21b7536f68abf821ca02a (patch) | |
tree | 3f601cae6490a8bfb4dc7dcdcc5c9b4dd1a75711 /src/expr/node_builder.cpp | |
parent | 82faddb718aaae5f52001e09d0754a3d254e2285 (diff) |
Extracted the public Expr and ExprManager interface to encapsulate the optimized expressions and the internal expression manager.
Diffstat (limited to 'src/expr/node_builder.cpp')
-rw-r--r-- | src/expr/node_builder.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/expr/node_builder.cpp b/src/expr/node_builder.cpp index 83d2ae41d..7d30ff4e3 100644 --- a/src/expr/node_builder.cpp +++ b/src/expr/node_builder.cpp @@ -104,15 +104,6 @@ NodeBuilder& NodeBuilder::notExpr() { return *this; } -// avoid double-negatives -NodeBuilder& NodeBuilder::negate() { - if(EXPECT_FALSE( d_kind == NOT )) - return reset(d_children.u_arr[0]); Assert( d_kind != UNDEFINED_KIND ); - collapse(); - d_kind = NOT; - return *this; -} - NodeBuilder& NodeBuilder::andExpr(const Node& right) { Assert( d_kind != UNDEFINED_KIND ); if(d_kind != AND) { |