X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2FSGExpression.cxx;h=df0aa9d747d13b6a0e26d61a9a69f6459b17dd19;hb=b0063f8db67066c1ad4d9481c33b4627a1c51d3b;hp=b14a5a50190568615947f92aa6f8c508514cb5bc;hpb=92074f0d3c29ed5d064db0c943cf88760c930e23;p=simgear.git diff --git a/simgear/structure/SGExpression.cxx b/simgear/structure/SGExpression.cxx index b14a5a50..df0aa9d7 100644 --- a/simgear/structure/SGExpression.cxx +++ b/simgear/structure/SGExpression.cxx @@ -27,7 +27,6 @@ #include "Singleton.hxx" #include -#include #include #include #include @@ -866,23 +865,6 @@ Expression* logicopParser(const SGPropertyNode* exp, Parser* parser) ExpParserRegistrar andRegistrar("and", logicopParser); ExpParserRegistrar orRegistrar("or", logicopParser); -Expression* notLogicopParser(const SGPropertyNode* exp, Parser* parser) -{ - using namespace boost; - vector children; - parser->readChildren(exp, children); - vector::iterator notBool = - find_if(children.begin(), children.end(), - boost::bind(&Expression::getType, _1) != BOOL); - if (notBool != children.end() || children.size() != 1) - throw("non boolean operand to not expression"); - NotExpression *expr = new NotExpression; - expr->setOperand(static_cast< ::SGExpression*>(children[0])); - return expr; -} - -ExpParserRegistrar notRegistrar("not", notLogicopParser); - int BindingLayout::addBinding(const string& name, Type type) { //XXX error checkint